diff options
| author | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | 2018-04-04 11:02:28 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-04-10 02:53:48 -0700 |
| commit | 1b1943b755c46d696cd8faa7c7bda350495cce13 (patch) | |
| tree | 69efe6a8fb76df73ba0fc31536c16cce5e88a698 /net/tipc/socket.c | |
| parent | ef00227cce638b1ca8bd8c04d342a8688b7400e9 (diff) | |
USB: f_accessory: Check dev pointer before decoding ctrl request
In case of poweroff charging mode, accessory function instance
is not created and due to this, _acc_dev will be NULL. If target
is connected to Accessory dock in poweroff charging mode, there
is a chance dev pointer is accessed, which is NULL. Hence add a
check before processing control request and return error if it is
NULL.
Change-Id: I4f1deb9d764b8c0bd1d7837cbc43a2933167f568
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions
