From: Stefan Richter Date: Sat, 3 Feb 2007 15:48:51 +0000 (+0100) Subject: ieee1394: raw1394: prevent unloading of low-level driver X-Git-Tag: v2.6.21-rc1~76^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fe4c6fcacb28bda75b31f63d3629f640a6b9bf9;p=pandora-kernel.git ieee1394: raw1394: prevent unloading of low-level driver Unloading the low-level driver module of a FireWire host can lead to all sorts of trouble if a raw1394 userspace client is using the host. Just disallow it by incrementing the LLD's module reference count on a RAW1394_REQ_SET_CARD write operation. Decrement it when the file is closed. This feature wouldn't be relevant if "modprobe -r video1394" or "modprobe -r dv1394" didn't automatically unload ohci1394 too. http://bugzilla.kernel.org/show_bug.cgi?id=7701 Signed-off-by: Stefan Richter Signed-off-by: Dan Dennedy --- Reading git-diff-tree failed