summaryrefslogtreecommitdiffstats
path: root/arch/hexagon
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-03-21 09:26:38 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-21 08:32:57 +0100
commit22c971db7dd4b0ad8dd88e99c407f7a1f4231a2e (patch)
tree721e9cc21e02a9130f62fe5e2d12345c77254948 /arch/hexagon
parentd70d70aec9632679dd00dcc1b1e8b2517e2c7da0 (diff)
downloadlinux-22c971db7dd4b0ad8dd88e99c407f7a1f4231a2e.tar.gz
linux-22c971db7dd4b0ad8dd88e99c407f7a1f4231a2e.tar.bz2
linux-22c971db7dd4b0ad8dd88e99c407f7a1f4231a2e.zip
staging: rtl8712: uninitialized memory in read_bbreg_hdl()
Colin King reported a bug in read_bbreg_hdl(): memcpy(pcmd->rsp, (u8 *)&val, pcmd->rspsz); The problem is that "val" is uninitialized. This code is obviously not useful, but so far as I can tell "pcmd->cmdcode" is never GEN_CMD_CODE(_Read_BBREG) so it's not harmful either. For now the easiest fix is to just call r8712_free_cmd_obj() and return. Fixes: 2865d42c78a9 ("staging: r8712u: Add the new driver to the mainline kernel") Reported-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/hexagon')
0 files changed, 0 insertions, 0 deletions