]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit7afb42226a8eaa9ae3f6b9917ffb16902358e749
treec5f75a6297cdb6d4f7e753a2a7849bcb8d1f6237
parent70d562cf7853ea1bb53c1007075c5df958f11c90
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