diff options
author | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | 2016-05-06 13:25:11 +0530 |
---|---|---|
committer | Hemant Kumar <hemantk@codeaurora.org> | 2016-09-06 11:52:23 -0700 |
commit | 7b82923158dad0688ad3848ae3bbb092ad12cb1b (patch) | |
tree | b8566b345787f38f05fa618158eb6bb7d915bd0e /fs/posix_acl.c | |
parent | 11d6060fffff4b7e87d1cadb5f65dfc7f74332cc (diff) |
USB: f_accessory: Fix NULL pointer dereference in acc_read()
If user tries to read /dev/usb_accessory node, it results in calling
acc_read() callback. If accessory interface is not present in current
USB composition, it will lead to crash as dev->ep_out is NULL. Fix
the issue by moving problematic code down after device becomes online.
Change-Id: I6441f6dc3cbe3a84a384fa3e8a6583f65a74659d
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'fs/posix_acl.c')
0 files changed, 0 insertions, 0 deletions