From: Zach Brown Date: Fri, 23 Jul 2010 17:32:31 +0000 (-0700) Subject: RDS: have sockets get transport module references X-Git-Tag: v2.6.37-rc1~147^2~499^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5adb5bc65f93e52341c3fc9d03d4030dd375e256;p=pandora-kernel.git RDS: have sockets get transport module references Right now there's nothing to stop the various paths that use rs->rs_transport from racing with rmmod and executing freed transport code. The simple fix is to have binding to a transport also hold a reference to the transport's module, removing this class of races. We already had an unused t_owner field which was set for the modular transports and which wasn't set for the built-in loop transport. Signed-off-by: Zach Brown --- Reading git-diff-tree failed