From: brian Date: Tue, 12 Aug 2008 19:17:56 +0000 (+0000) Subject: b=16683 X-Git-Tag: v1_7_80~1^67~1 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ebec7f5904d2fdf6150040c04637132e617fb278;p=fs%2Flustre-release.git b=16683 i=nathan.rutman i=robert.read Avoid a possible integer overflow, idenfitied by Coverty care of LLNL. --- diff --git a/lustre/utils/obd.c b/lustre/utils/obd.c index 4ba20ae..8e6db0b 100644 --- a/lustre/utils/obd.c +++ b/lustre/utils/obd.c @@ -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); }