mtd: s3c2410: Fix potential NULL pointer dereference error
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 16 Nov 2012 10:38:22 +0000 (16:08 +0530)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sun, 18 Nov 2012 10:44:38 +0000 (12:44 +0200)
'set' is tested for NULL. But subsequently accessed without the check.
Thus making it conditional to avoid NULL pointer dereferencing.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

No differences found