Re: [PATCH] nl802154: stricter input checking for boolean inputs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Stefan,

> 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@xxxxxxxxxxxxxxx>
> ---
> net/ieee802154/nl802154.c | 16 ++++++++++++----
> 1 file changed, 12 insertions(+), 4 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux