]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: onenand: add missing check
authorjohn.maxin@nokia.com <john.maxin@nokia.com>
Fri, 6 May 2011 09:17:21 +0000 (09:17 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 May 2011 01:01:38 +0000 (02:01 +0100)
commite3b9c45bdd656567edf93c272f2f3396ebafc929
tree10f2c7cabc65d4385cedc76ee95b0eb7ad279cf0
parent8d53ceab4dc322b76589b4a954101d3b54867383
mtd: onenand: add missing check

Coverity has reported that inside the function "onenand_block_by_block_erase()"
in onenand_base.c, we should add a check to prevent the incrementing of
possible NULL value for "region"

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/onenand/onenand_base.c