diff options
author | Hemant Kumar <hemantk@codeaurora.org> | 2017-08-28 13:26:06 -0700 |
---|---|---|
committer | Hemant Kumar <hemantk@codeaurora.org> | 2017-08-28 13:41:14 -0700 |
commit | 7506dd8c9acf7be1386ee8ee7498d87cb5630d44 (patch) | |
tree | 9ef97b570407284d4856ceb1c75c16dba6fabc14 /fs/nfs/inode.c | |
parent | 0a57938d144e24ea7ef6b56ae6b2d4d732060f00 (diff) |
usb: gadget: u_ether: Add NULL check in helper APIs
APIs being called as part of configfs attributes require
to have NULL check for network device pointer. As user
can call show and store call back even if network device
is not allocated which results in to NULL pointer dereference.
For example: In non-NCM composition user tries
cat config/usb_gadget/g1/functions/ncm.0/ifname
Change-Id: Ia4a1c6bec6d20e41886c952b0365419f2a8effcb
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Diffstat (limited to 'fs/nfs/inode.c')
0 files changed, 0 insertions, 0 deletions