diff options
author | Artem Bityutskiy <[email protected]> | 2009-07-10 17:02:17 +0300 |
---|---|---|
committer | David Woodhouse <[email protected]> | 2009-08-03 14:20:26 +0100 |
commit | 8022c13c27b822cf22f13df10b42aae89cd56bf0 (patch) | |
tree | bd6a16cdb98c6f1b8d150cd0d0a5567455a83581 /net/lapb/lapb_iface.c | |
parent | 6afc4fdb3e94ba60cd566cb878b60c6c01979277 (diff) |
mtd: blkdevs: do not forget to get MTD devices
Nowadays MTD devices have to be "get" before they can be
used. This has to be done with 'get_mtd_device()'. The
'blktrans_open()' function did not do this and instead
used 'try_module_get()'. Fix this.
Since 'get_mtd_device()' already gets the module, extra
'try_module_get()' is not needed.
This fixes oops when one tries to use mtdblock on top of
gluebi.
Reported-by: Holger Brunck <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions