Whamcloud - gitweb
b=16683
authorbrian <brian>
Tue, 12 Aug 2008 19:17:56 +0000 (19:17 +0000)
committerbrian <brian>
Tue, 12 Aug 2008 19:17:56 +0000 (19:17 +0000)
i=nathan.rutman
i=robert.read

Avoid a possible integer overflow, idenfitied by Coverty care of LLNL.

lustre/utils/obd.c

index 4ba20ae..8e6db0b 100644 (file)
@@ -121,7 +121,7 @@ struct lsm_buffer {
         struct lov_oinfo *ptrs[MAX_STRIPES];
 } lsm_buffer;
 
-static int l2_ioctl(int dev_id, int opc, void *buf)
+static int l2_ioctl(int dev_id, unsigned int opc, void *buf)
 {
         return l_ioctl(dev_id, opc, buf);
 }