logfs: handle errors from get_mtd_device()
authorDan Carpenter <error27@gmail.com>
Fri, 7 May 2010 08:59:06 +0000 (10:59 +0200)
committerJoern Engel <joern@logfs.org>
Fri, 7 May 2010 12:16:09 +0000 (14:16 +0200)
The get_mtd_device() function returns error pointers on failure and if we
don't handle it, it leads to a crash.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Joern Engel <joern@logfs.org>

No differences found