summaryrefslogtreecommitdiffstats
path: root/mm/rodata_test.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-05-15 00:47:00 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-15 04:52:52 +0200
commitc8ea3663f7a8e6996d44500ee818c9330ac4fd88 (patch)
tree70517f9071c6c2e430c11355455adee320d32312 /mm/rodata_test.c
parentmm, memcg: rename ambiguously named memory.stat counters and functions (diff)
downloadlinux-c8ea3663f7a8e6996d44500ee818c9330ac4fd88.tar.xz
linux-c8ea3663f7a8e6996d44500ee818c9330ac4fd88.zip
drivers/virt/fsl_hypervisor.c: dereferencing error pointers in ioctl
strndup_user() returns error pointers on error, and then in the error handling we pass the error pointers to kfree(). It will cause an Oops. Link: http://lkml.kernel.org/r/20181218082003.GD32567@kadam Fixes: 6db7199407ca ("drivers/virt: introduce Freescale hypervisor management driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Timur Tabi <timur@freescale.com> Cc: Mihai Caraman <mihai.caraman@freescale.com> Cc: Kumar Gala <galak@kernel.crashing.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/rodata_test.c')
0 files changed, 0 insertions, 0 deletions