From: Tejun Heo Date: Thu, 20 Sep 2007 07:05:10 +0000 (+0900) Subject: sysfs: make bin attr open get active reference of parent too X-Git-Tag: v2.6.24-rc1~1394^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=078ce6409ca54d5fc6eb7d2147cd6efc3eb09078;p=pandora-kernel.git sysfs: make bin attr open get active reference of parent too All bin attr operations require active references of itself and its parent. There's no reason to allow open when its parent has been deactivated and allowing it is inconsistent with regular sysfs file. Use sysfs_get_active_two() in bin attribute open function. Signed-off-by: Tejun Heo Acked-by: Cornelia Huck Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed