]> git.baikalelectronics.ru Git - kernel.git/commit
pktcdvd: fix BUG caused by sysfs module reference semantics change
authorTejun Heo <htejun@gmail.com>
Thu, 8 Nov 2007 07:00:24 +0000 (08:00 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 8 Nov 2007 07:00:24 +0000 (08:00 +0100)
commit5ecf48bd9c2f3b9e3ed8e72c12c946098b30e879
treee7473f6bc2406c1f20119a2d5532d7ec2655bdb6
parent5bc1bb0b5313caaa2065396a4b260cda1c8a6984
pktcdvd: fix BUG caused by sysfs module reference semantics change

pkt_setup_dev() expects module reference to be held on invocation.
This used to be true for sysfs callbacks but not anymore.  Test and
grab module reference around pkt_setup_dev() in
class_pktcdvd_store_add().

Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/pktcdvd.c