]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit233a47beb78e94626d4358ddf214b27e9e6f5f6c
tree4b7d86926f9b25854e57680491eb6a5febe5fdeb
parent64d42cfc4da62ed675227e61c124ed05c33d3f32
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: 90bb99b4fbce ("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