diff options
author | 2005-10-20 10:56:41 +0200 | |
---|---|---|
committer | 2005-10-28 08:15:58 +0200 | |
commit | 2824bc9328467127083c1325f54b67d298c333b2 (patch) | |
tree | 0d19aeb555c35ddbdbcf195b976964523fecc404 /drivers/i2c/i2c-dev.c | |
parent | Following the same idea, it occurs to me that we should only update (diff) | |
download | wireguard-linux-2824bc9328467127083c1325f54b67d298c333b2.tar.xz wireguard-linux-2824bc9328467127083c1325f54b67d298c333b2.zip |
[PATCH] fix try_module_get race in elevator_find
This patch removes try_module_get race in elevator_find.
try_module_get should always be called with the spinlock protecting
what the module init/cleanup routines register/unregister to held. In
the case of elevators, we should be holding elv_list to avoid it going
away between spin_unlock_irq and try_module_get.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'drivers/i2c/i2c-dev.c')
0 files changed, 0 insertions, 0 deletions