diff options
author | Darrick J. Wong <[email protected]> | 2008-11-12 13:25:36 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-11-12 17:17:16 -0800 |
commit | f0f7e0dc7393268947dc3ed285defc3d375487b9 (patch) | |
tree | 90ffb16affdfcfac145ff8dde775c89f558e599a /net/lapb/lapb_in.c | |
parent | fe2d5ffc74a1de6a31e9fd65b65cce72d881edf7 (diff) |
i5000-edac: hold reference to mci kobject
It turns out that edac_mc_del_mc will kobject_put the last kref on the
mci object.
If the timing is just right, that means that the mci object is freed
before before i5000_remove_one has a chance to free the resources
associated with it, causing a null pointer exceptions when unloading the
driver. Insert a kobject_{get,put} pair so that this doesn't happen.
Signed-off-by: Darrick J. Wong <[email protected]>
Cc: Doug Thompson <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions