ARM: mmp: fix potential NULL dereference
authorYuanhan Liu <yliu.null@gmail.com>
Wed, 8 Aug 2012 09:02:08 +0000 (17:02 +0800)
committerHaojian Zhuang <haojian.zhuang@gmail.com>
Fri, 10 Aug 2012 14:32:24 +0000 (22:32 +0800)
commitc0db19dabf138741e078f6391fb132821c0d98b5
tree854bfc3addb1d71e79e31c57f187d9ca4d998606
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee
ARM: mmp: fix potential NULL dereference

Fix the wrong logic: we should use || instead of &&

Cc: Leo Yan <leoy@marvell.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Yuanhan Liu <yliu.null@gmail.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
arch/arm/mach-mmp/sram.c