summaryrefslogtreecommitdiffstats
path: root/arch/s390/appldata
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2008-10-28 11:10:18 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2008-10-28 11:12:04 +0100
commit13f8b7c5e6fa13622592042f3b5aa88ba785cec2 (patch)
treebb0b169e9a03ef2b15aa7f34a2968c6f5db36582 /arch/s390/appldata
parent7a4a1ccd44c85c7d92b20a361e3854431c6935e0 (diff)
downloadlinux-13f8b7c5e6fa13622592042f3b5aa88ba785cec2.tar.bz2
[S390] appldata: unsigned ops->size cannot be negative
unsigned ops->size cannot be negative Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/appldata')
-rw-r--r--arch/s390/appldata/appldata_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c
index a7f8979fb925..a06a47cdd5e0 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);