OSDN Git Service

net: qualcomm: rmnet: Fix memory corruption if mux_id is greater than 32
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Sun, 3 Sep 2017 05:30:41 +0000 (23:30 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Sep 2017 04:27:18 +0000 (21:27 -0700)
commit009e1b2b7a302219562999f3b273bd4cbf4d9b40
tree4b7d86926f9b25854e57680491eb6a5febe5fdeb
parent3cf2e08f5ace79d57c8edba06deb59b25bd1dd33
net: qualcomm: rmnet: Fix memory corruption if mux_id is greater than 32

rmnet_rtnl_validate() was checking for upto mux_id 254, however the
rmnet_devices devices could hold upto 32 entries only. Fix this by
increasing the size of the rmnet_devices.

Fixes: ceed73a2cf4a ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation")
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Cc: Dan Williams <dcbw@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.h
drivers/net/ethernet/qualcomm/rmnet/rmnet_private.h
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c