ARM: S3C: NAND: Check the existence of nr_map before copying
authorRamax Lo <ramaxlo@gmail.com>
Thu, 14 Jan 2010 02:15:05 +0000 (10:15 +0800)
committerBen Dooks <ben-linux@fluff.org>
Thu, 14 Jan 2010 02:25:44 +0000 (11:25 +0900)
Since the structure field nr_map is optional, we need to check whether the
chip number map is provided to avoid unexpected NULL pointer exception.

Signed-off-by: Ramax Lo <ramaxlo@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>

No differences found