summaryrefslogtreecommitdiff
path: root/net/llc
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2017-08-28 13:26:06 -0700
committerHemant Kumar <hemantk@codeaurora.org>2017-08-28 13:41:14 -0700
commit7506dd8c9acf7be1386ee8ee7498d87cb5630d44 (patch)
tree9ef97b570407284d4856ceb1c75c16dba6fabc14 /net/llc
parent0a57938d144e24ea7ef6b56ae6b2d4d732060f00 (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 'net/llc')
0 files changed, 0 insertions, 0 deletions