projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a4a1cc
)
[S390] appldata: unsigned ops->size cannot be negative
author
Roel Kluin
<roel.kluin@gmail.com>
Tue, 28 Oct 2008 10:10:18 +0000
(11:10 +0100)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Tue, 28 Oct 2008 10:12:04 +0000
(11:12 +0100)
unsigned ops->size cannot be negative
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/appldata/appldata_base.c
patch
|
blob
|
history
diff --git
a/arch/s390/appldata/appldata_base.c
b/arch/s390/appldata/appldata_base.c
index a7f8979fb92584bcf45ef94001557b2fe02d9674..a06a47cdd5e06e30efbde7f92b882fd2c948c610 100644
(file)
--- 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);