From: Roel Kluin Date: Tue, 28 Oct 2008 10:10:18 +0000 (+0100) Subject: [S390] appldata: unsigned ops->size cannot be negative X-Git-Tag: v2.6.28-rc3~92^2~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=13f8b7c5e6fa13622592042f3b5aa88ba785cec2;p=~emulex%2Finfiniband.git [S390] appldata: unsigned ops->size cannot be negative unsigned ops->size cannot be negative Signed-off-by: Roel Kluin Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c index a7f8979fb92..a06a47cdd5e 100644 --- a/arch/s390/appldata/appldata_base.c +++ b/arch/s390/appldata/appldata_base.c @@ -424,7 +424,7 @@ out: */ int appldata_register_ops(struct appldata_ops *ops) { - if ((ops->size > APPLDATA_MAX_REC_SIZE) || (ops->size < 0)) + if (ops->size > APPLDATA_MAX_REC_SIZE) return -EINVAL; ops->ctl_table = kzalloc(4 * sizeof(struct ctl_table), GFP_KERNEL);