Dan Carpenter c8ea3663f7 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>
2019-05-14 19:52:52 -07:00
..
2019-05-14 10:30:10 -07:00
2019-05-08 12:25:12 -07:00
2019-05-07 09:18:12 -07:00
2019-05-09 08:51:45 -07:00
2019-05-08 21:35:19 -07:00
2019-05-14 10:39:08 -07:00
2019-05-07 08:50:40 -07:00
2019-05-14 10:39:08 -07:00
2019-05-14 10:39:08 -07:00
2019-05-07 18:14:36 -07:00
2019-05-07 12:56:19 -07:00
2019-05-14 10:39:08 -07:00
2019-05-14 10:30:10 -07:00
2019-05-14 10:39:08 -07:00
2019-05-07 18:14:36 -07:00
2019-05-08 10:12:46 -07:00
2019-05-09 08:40:55 -07:00
2019-05-14 10:30:10 -07:00
2019-05-08 10:03:52 -07:00
2019-05-14 10:39:08 -07:00
2019-05-14 10:39:08 -07:00
2019-05-14 19:52:51 -07:00
2019-05-10 12:57:15 -04:00
2019-05-12 07:00:21 -04:00
2019-05-14 10:45:03 -07:00
2019-05-08 10:12:46 -07:00
2019-05-14 19:52:51 -07:00
2019-05-14 10:45:03 -07:00
2019-05-07 13:39:22 -07:00
2019-05-13 09:20:42 -04:00