From: Nick Dyer Date: Fri, 7 Jun 2013 14:45:13 +0000 (+0100) Subject: sysfs_notify is only possible on file attributes X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~74^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc60bb8339b66183f40ea9a001538c958f6d2c9e;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed