diff options
author | Stefan Schmidt <stefan@osg.samsung.com> | 2015-08-20 10:09:47 (GMT) |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-08-28 19:00:37 (GMT) |
commit | 4e1795de10903ae561872c54a72fa1bcf78f49cd (patch) | |
tree | 079a1a8ccd4fa1aae16d18c14d5e40d0b1d31f23 /mm/truncate.c | |
parent | df945360ce07ca592464e44fdd2ce61ee1536e1e (diff) | |
download | linux-4e1795de10903ae561872c54a72fa1bcf78f49cd.tar.xz |
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 'mm/truncate.c')
0 files changed, 0 insertions, 0 deletions