Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13f8b7c5 authored by Roel Kluin's avatar Roel Kluin Committed by Martin Schwidefsky
Browse files

[S390] appldata: unsigned ops->size cannot be negative



unsigned ops->size cannot be negative

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 7a4a1ccd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);