diff options
author | Dave Jones <davej@fedoraproject.org> | 2014-01-30 03:11:33 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-20 19:08:01 (GMT) |
commit | 09dc446e6adfe295f677ad349f5cea2b88f5c40b (patch) | |
tree | 022e42463bfde092edfa15b42bc22d0b87e70cf2 /drivers/scsi/libfc | |
parent | 0d7a951f2d2abd9b3c4b20e58e41875a2a74e69b (diff) | |
download | linux-fsl-qoriq-09dc446e6adfe295f677ad349f5cea2b88f5c40b.tar.xz |
mxl111sf: Fix unintentional garbage stack read
commit 866e8d8a9dc1ebb4f9e67197e264ac2df81f7d4b upstream.
mxl111sf_read_reg takes an address of a variable to write to as an argument.
drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c:mxl111sf_config_pin_mux_modes
passes several uninitialized stack variables to this routine, expecting
them to be filled in. In the event that something unexpected happens when
reading from the chip, we end up doing a pr_debug of the value passed in,
revealing whatever garbage happened to be on the stack.
Change the pr_debug to match what happens in the 'success' case, where we
assign buf[1] to *data.
Spotted with Coverity (Bugs 731910 through 731917)
Signed-off-by: Dave Jones <davej@fedoraproject.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/libfc')
0 files changed, 0 insertions, 0 deletions