From: Tejun Heo Date: Thu, 8 Nov 2007 07:00:24 +0000 (+0100) Subject: pktcdvd: fix BUG caused by sysfs module reference semantics change X-Git-Tag: v2.6.24-rc3~174^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fffe487d59ba4017c7c62b06667ca4a226cee651;p=pandora-kernel.git 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 Acked-by: Peter Osterlund Signed-off-by: Jens Axboe --- Reading git-diff-tree failed