4e3af9754b8 parent 58e323cf5e4ed621a6e88263aca40c3d9c3d9bfd author Dan Carpenter 1273222746 +0200 committer Joern Engel 1273234569 +0200 logfs: handle errors from get_mtd_device() 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 Signed-off-by: Joern Engel Ž5–Ñš