]> git.karo-electronics.de Git - mv-sheeva.git/commit
mtd: mtdswap: fix possible null dereference
authorMaxin B. John <john.maxin@nokia.com>
Fri, 20 May 2011 14:44:10 +0000 (15:44 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 May 2011 01:11:44 +0000 (02:11 +0100)
commit8d8f26e19cae48541b824f164021e1ff05067f8c
tree622456f9c0792a75ef8d81e2f0d61770fb03e478
parent5c8d2607756a63ddf5b2f2dd368851b8febe4e72
mtd: mtdswap: fix possible null dereference

This patch fixes the possible null dereference of the variable "oinfo"
Thanks to Coverity for spotting this.

Signed-off-by: Maxin B. John <john.maxin@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdswap.c