]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
usb: fsl: Check memory resource before releasing it
authorNikhil Badola <nikhil.badola@freescale.com>
Mon, 21 Oct 2019 10:21:51 +0000 (18:21 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 4 Dec 2019 09:29:26 +0000 (10:29 +0100)
commit7d4597d273265bb66d3cff5b63570aea13f34c07
treeab7af5e5f97397bcfd78d1998cc2c6204368bbb3
parent426b7d51df7dc8193af37e1f53d95b713c87cf54
usb: fsl: Check memory resource before releasing it

BugLink: https://bugs.launchpad.net/bugs/1852338
[ Upstream commit bc1e3a2dd0c9954fd956ac43ca2876bbea018c01 ]

Check memory resource existence before releasing it to avoid NULL
pointer dereference

Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
Reviewed-by: Ran Wang <ran.wang_1@nxp.com>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/usb/gadget/udc/fsl_udc_core.c