commit | 4e1795de10903ae561872c54a72fa1bcf78f49cd | [log] [tgz] |
---|---|---|
author | Stefan Schmidt <stefan@osg.samsung.com> | Thu Aug 20 12:09:47 2015 +0200 |
committer | Marcel Holtmann <marcel@holtmann.org> | Fri Aug 28 21:00:37 2015 +0200 |
tree | 079a1a8ccd4fa1aae16d18c14d5e40d0b1d31f23 | |
parent | df945360ce07ca592464e44fdd2ce61ee1536e1e [diff] |
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>