]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78be441709b563637b5e37e21e17a9766b7d7ea6
treec5f75a6297cdb6d4f7e753a2a7849bcb8d1f6237
parent19e4be8f61aaa79eb5806e3307c90b2106fc6d69
libata: don't allow sysfs read access to force param

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>
drivers/ata/libata-core.c