diff options
author | Jeff Mahoney <jeffm@suse.com> | 2006-06-26 00:27:24 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-08 14:51:37 -0700 |
commit | 6731637067000c92d8957ddec764f31720c89c15 (patch) | |
tree | c95441106e26aab5f6526d4c8e13013720c9e286 /drivers/macintosh/therm_adt746x.c | |
parent | 1d62e5eb23afbc3a36795a165fe2ffae6268b57f (diff) |
dm: fix mapped device ref counting
To avoid races, _minor_lock must be held while changing mapped device
reference counts.
There are a few paths where a mapped_device pointer is returned before a
reference is taken. This patch fixes them.
[akpm: too late for 2.6.17 - suitable for 2.6.17.x after it has settled]
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/macintosh/therm_adt746x.c')
0 files changed, 0 insertions, 0 deletions