OSDN Git Service

diag: Add NULL checks for the mask and mask pointer
authorManoj Prabhu B <bmanoj@codeaurora.org>
Wed, 18 Jul 2018 09:50:43 +0000 (15:20 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Fri, 10 Aug 2018 04:59:04 +0000 (21:59 -0700)
commit0b3dc1a93eba75c9c37edead0253bbce3cfe9524
treea7d3cc15d44702889f1af3c6bff10833f73a47b6
parenta829ffa67368b66eaf852ca6deb0d2aea9bcc7b5
diag: Add NULL checks for the mask and mask pointer

The chances of accessing uninitialized mask is prevented
by adding null pointer checks for the mask structure and its
member pointer.

Change-Id: Ibf0467228794b773fc2537d34f1da6719bbb975a
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
drivers/char/diag/diag_masks.c
drivers/char/diag/diagfwd_cntl.c