OSDN Git Service

diag: Place proper NULL pointer checks
authorManoj Prabhu B <bmanoj@codeaurora.org>
Tue, 11 Apr 2017 15:49:17 +0000 (21:19 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 12 Apr 2017 10:27:04 +0000 (03:27 -0700)
commite6707683f3ee0ad84630885d5609eb0cccfa7073
tree9d79062918e5d22f9c7f5ca5b69b15720c52ca3f
parent4901c7fce456a3ad5d80836000539674a885913e
diag: Place proper NULL pointer checks

This patch checks the buffer for NULL
pointer to prevent undefined access.

CRs-Fixed: 2032374
Change-Id: I1a1c4ca24e5c3d538ea93685de304dd186968308
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
drivers/char/diag/diagfwd_peripheral.c