https://github.com/torvalds/linux
Revision bfe5b1b1e013f7b1c0fd2ac3b3c8c380114b3fb9 authored by Ville Viinikka on 08 July 2016, 15:27:02 UTC, committed by Ulf Hansson on 18 July 2016, 09:30:54 UTC
Set 'idata->buf' to NULL so that it never gets returned without
initialization. This fixes a bug where mmc_blk_ioctl_cmd() would
free both 'idata' and 'idata->buf' but 'idata->buf' was returned
uninitialized.

Fixes: 1ff8950c0433 ("mmc: block: change to use kmalloc when copy data from userspace")
Signed-off-by: Ville Viinikka <ville@tuxera.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 92d21ac
History
Tip revision: bfe5b1b1e013f7b1c0fd2ac3b3c8c380114b3fb9 authored by Ville Viinikka on 08 July 2016, 15:27:02 UTC
mmc: block: fix free of uninitialized 'idata->buf'
Tip revision: bfe5b1b
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 6.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.5 KB
Kbuild -rw-r--r-- 2.8 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 353.8 KB
Makefile -rw-r--r-- 56.0 KB
README -rw-r--r-- 18.1 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top