Skip to content

Commit

Permalink
[S390] appldata: unsigned ops->size cannot be negative
Browse files Browse the repository at this point in the history
unsigned ops->size cannot be negative

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Roel Kluin authored and Martin Schwidefsky committed Oct 28, 2008
1 parent 7a4a1cc commit 13f8b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/appldata/appldata_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ appldata_generic_handler(ctl_table *ctl, int write, struct file *filp,
*/
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);
Expand Down

0 comments on commit 13f8b7c

Please sign in to comment.