summaryrefslogtreecommitdiff
path: root/drivers/mfd/rk808.c
diff options
context:
space:
mode:
authorAjay Singh <ajay.kathat@microchip.com>2019-11-07 15:58:54 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-11 16:37:59 +0100
commitc7e621bb981b76d3bfd8a595070ee8282ac4a32b (patch)
tree4debf0dce4d23e2a1fc152af7c0f375e7dc0cfb1 /drivers/mfd/rk808.c
parenta46e810975b8bde22e612c12331e1c5207797435 (diff)
staging: wilc1000: fix illegal memory access in wilc_parse_join_bss_param()
Do not copy the extended supported rates in 'param->supp_rates' if the array is already full with basic rates values. The array size check helped to avoid possible illegal memory access [1] while copying to 'param->supp_rates' array. 1. https://marc.info/?l=linux-next&m=157301720517456&w=2 Reported-by: coverity-bot <keescook+coverity-bot@chromium.org> Addresses-Coverity-ID: 1487400 ("Memory - illegal accesses") Fixes: 4e0b0f42c9c7 ("staging: wilc1000: use struct to pack join parameters for FW") Cc: stable@vger.kernel.org Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Link: https://lore.kernel.org/r/20191106062127.3165-1-ajay.kathat@microchip.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mfd/rk808.c')
0 files changed, 0 insertions, 0 deletions