From: Artem Bityutskiy Date: Fri, 10 Jul 2009 14:02:17 +0000 (+0300) Subject: mtd: blkdevs: do not forget to get MTD devices X-Git-Tag: v2.6.31-rc6~45^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8022c13c27b822cf22f13df10b42aae89cd56bf0;p=pandora-kernel.git 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed