summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-08-20 12:09:47 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-08-28 21:00:37 +0200
commit4e1795de10903ae561872c54a72fa1bcf78f49cd (patch)
tree079a1a8ccd4fa1aae16d18c14d5e40d0b1d31f23 /scripts
parentdf945360ce07ca592464e44fdd2ce61ee1536e1e (diff)
downloadlinux-stable-4e1795de10903ae561872c54a72fa1bcf78f49cd.tar.gz
linux-stable-4e1795de10903ae561872c54a72fa1bcf78f49cd.tar.bz2
linux-stable-4e1795de10903ae561872c54a72fa1bcf78f49cd.zip
nl802154: stricter input checking for boolean inputs
So far we handled boolean input by forcing them with !! and assigning them into a bool. This allowed userspace to send values > 1 which were used as 1. We should be stricter here and return -EINVAL for all but 0 or 1. Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com> Acked-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions