summaryrefslogtreecommitdiffstats
path: root/drivers/usb/early
diff options
context:
space:
mode:
authorNick Dyer <nick.dyer@itdev.co.uk>2013-06-07 16:45:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-08 01:05:50 +0200
commitfc60bb8339b66183f40ea9a001538c958f6d2c9e (patch)
treeed6e5bea8971fb25642606872c98b1f3f619abfe /drivers/usb/early
parentfirmware loader: simplify holding module for request_firmware (diff)
downloadlinux-fc60bb8339b66183f40ea9a001538c958f6d2c9e.tar.xz
linux-fc60bb8339b66183f40ea9a001538c958f6d2c9e.zip
sysfs_notify is only possible on file attributes
If sysfs_notify is called on a binary attribute, bad things can happen, so prevent it. Note, no in-kernel usage of this is currently present, but in the future, it's good to be safe. Changes in V2: - Also ignore sysfs_notify on dirs, links - Use WARN_ON rather than silently failing - Compiled and tested (huge apologies about first submission) Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/early')
0 files changed, 0 insertions, 0 deletions