Skip to content
Commit fffe487d authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

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: default avatarTejun Heo <htejun@gmail.com>
Acked-by: default avatarPeter Osterlund <petero2@telia.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 8ec680e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment