From 5c3576015598161bf2ff1955242859f6e179c396 Mon Sep 17 00:00:00 2001
From: brian <brian>
Date: Tue, 12 Aug 2008 19:10:42 +0000
Subject: [PATCH] b=16683 i=nathan.rutman i=robert.read

Avoid a possible integer overflow, idenfitied by Coverty care of LLNL.
---
 lustre/utils/obd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lustre/utils/obd.c b/lustre/utils/obd.c
index 4ba20ae178..8e6db0bab2 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);
 }
-- 
GitLab