]> git.baikalelectronics.ru Git - kernel.git/commit
net: qualcomm: rmnet: Fix possible null dereference in command processing
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Fri, 16 Feb 2018 22:56:39 +0000 (15:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Feb 2018 16:17:34 +0000 (11:17 -0500)
commit84321aa0862fc539e919e27b152e8c60b8a53e0b
treefd1897fae8fb8d7ffea0045290e3b796eaac7095
parentb5fb29da49d79d377ac8299c0e5a52e2ee7e5da6
net: qualcomm: rmnet: Fix possible null dereference in command processing

If a command packet with invalid mux id is received, the packet would
not have a valid endpoint. This invalid endpoint maybe dereferenced
leading to a crash. Identified by manual code inspection.

Fixes: d29acd399376 ("net: qualcomm: rmnet: Convert the muxed endpoint to hlist")
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c