]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: physmap_of: fix incorrect check
authorvimal singh <vimal.newwork@gmail.com>
Thu, 30 Jul 2009 15:24:27 +0000 (20:54 +0530)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 4 Sep 2009 08:39:50 +0000 (09:39 +0100)
commitec3e25bf57d3838e14bbfbb4262425282c3324ab
tree22bbcfe99366a67357cec464e9b3332cd4cd5d95
parentbfc7109d76a2d376ff7ef131809bfc5fdf434327
mtd: physmap_of: fix incorrect check

This patch fixes a spelling error that has resulted from copy and
pasting. The location of the error was found using a semantic patch
but the semantic patch was not trying to find these errors. After
looking things over it seemed logical that this change was needed.

The patch also makes sure mtd_list is not being freed if it has not
been allocated

Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
Signed-off-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/physmap_of.c