driver: net: fsl-mc: Check NULL before pointer dereference
authorPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Fri, 18 Mar 2016 10:46:03 +0000 (16:16 +0530)
committerYork Sun <york.sun@nxp.com>
Tue, 29 Mar 2016 15:46:01 +0000 (08:46 -0700)
commitb576d325acbcbe05d712e3a995b4ce6689eb96c5
treefc43c17965c8d577bea1d8ac290612f1e352eced
parentcd7b3fbcf46844230ad664884c18d0281a4a31d7
driver: net: fsl-mc: Check NULL before pointer dereference

NULL pointer should be checked before any dereference.  This patch
move memest after the NULL pointer check.

Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Reported-by: Jose Rivera <german.rivera@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/net/fsl-mc/dpio/qbman_sys.h