linux-kernel-test/drivers/mtd
Artem Bityutskiy 8022c13c27 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>
2009-08-03 14:20:26 +01:00
..
chips mtd: CFI 1.0 and CFI 1.1 2009-06-05 17:55:10 +01:00
devices mtd: m25p80 timeout too short for worst-case m25p16 devices 2009-06-26 18:15:21 +01:00
lpddr [MTD] [LPDDR] qinfo_probe depends on lpddr 2009-01-11 10:42:32 +00:00
maps mtd: maps: Remove BUS_ID_SIZE from integrator_flash 2009-06-24 16:02:06 +01:00
nand mtd: nand: fix build failure and incorrect return from omap_wait() 2009-06-28 10:24:13 +01:00
onenand Merge git://git.infradead.org/mtd-2.6 2009-06-22 16:56:22 -07:00
tests trivial: NULL noise: drivers/mtd/tests/mtd_*test.c 2009-03-30 15:22:04 +02:00
ubi UBI: fix bug in image sequence number handling 2009-07-15 11:30:59 +03:00
afs.c
ar7part.c [MTD] mtdpart: Make all partition parsers return allocated array 2009-03-20 18:55:17 +00:00
cmdlinepart.c mtd: cmdlineparts: Use 64-bit format when printing a debug message. 2009-06-25 08:18:12 +01:00
ftl.c
inftlcore.c mtd: Use BLOCK_NIL consistently in NFTL/INFTL 2009-06-27 09:22:10 +01:00
inftlmount.c [MTD] we don't need no misc devices 2009-03-20 13:16:26 +00:00
internal.h NOMMU: Present backing device capabilities for MTD chardevs 2009-03-24 09:00:19 +00:00
Kconfig trivial: mtd: fix Kconfig comment about 'armflash' 2009-06-12 18:01:45 +02:00
Makefile NOMMU: Present backing device capabilities for MTD chardevs 2009-03-24 09:00:19 +00:00
mtd_blkdevs.c mtd: blkdevs: do not forget to get MTD devices 2009-08-03 14:20:26 +01:00
mtdbdi.c NOMMU: Present backing device capabilities for MTD chardevs 2009-03-24 09:00:19 +00:00
mtdblock_ro.c
mtdblock.c
mtdchar.c mtd: Fix pointer handling in compat ioctls to use compat_ptr() 2009-05-29 16:09:08 +01:00
mtdconcat.c NOMMU: Add support for direct mapping through mtdconcat if possible 2009-03-24 09:01:08 +00:00
mtdcore.c mtd: fix the conversion from dev to mtd_info 2009-08-03 14:16:01 +01:00
mtdcore.h
mtdoops.c [MTD] mtdoops: fix a bit of spin lock usage 2009-03-20 18:39:25 +00:00
mtdpart.c [MTD] Remove option for add_mtd_partitions() to not register partitions. 2009-05-26 16:45:44 +01:00
mtdsuper.c Convert obvious places to deactivate_locked_super() 2009-05-09 10:49:40 -04:00
nftlcore.c mtd: Use BLOCK_NIL consistently in NFTL/INFTL 2009-06-27 09:22:10 +01:00
nftlmount.c
ofpart.c [MTD] ofpart: Check name property to determine partition nodes. 2009-03-24 14:04:20 +00:00
redboot.c
rfd_ftl.c
ssfdc.c