libata: don't allow sysfs read access to force param
authorTejun Heo <htejun@gmail.com>
Sun, 9 Mar 2008 11:21:53 +0000 (20:21 +0900)
committerJeff Garzik <jeff@garzik.org>
Tue, 11 Mar 2008 00:51:05 +0000 (20:51 -0400)
Buffer for force param is deallocated after initialization, so trying
to read it via sysfs results in oops.  Don't allow read access to the
param node.

Spotted by Eric Sesterhenn.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

No differences found