aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorUrsula Braun <[email protected]>2016-10-12 12:38:50 +0200
committerDavid S. Miller <[email protected]>2016-10-13 10:59:45 -0400
commit9edebf11a4aa6349fecaedd673516fcf1999956a (patch)
tree6fb4ecd3d0b26dd6702dcffe6370fb0d28a9b065 /lib/cpu-notifier-error-inject.c
parentbaac789832ac91d477dc3c69f8d7bf84babd74cf (diff)
s390/netiucv: improve checking of sysfs attribute buffer
High values are always wrong for netiucv's sysfs attribute "buffer". But the current code does not detect values between 2**31 and 2**32 as invalid. Choosing type "unsigned int" for variable "bs1" and making use of "kstrtouint()" improves the syntax checking for "buffer". Signed-off-by: Ursula Braun <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions