diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-07-10 17:02:17 +0300 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-08-03 14:20:26 +0100 |
commit | 8022c13c27b822cf22f13df10b42aae89cd56bf0 (patch) | |
tree | bd6a16cdb98c6f1b8d150cd0d0a5567455a83581 /drivers/net/atp.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 <holger.brunck@keymile.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/net/atp.c')
0 files changed, 0 insertions, 0 deletions