commit | 98a80cd0e52ba48aab39d600cac02d342c2c74f9 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marex@denx.de> | Fri Jan 28 04:39:09 2022 +0100 |
committer | Marek Vasut <marex@denx.de> | Fri Feb 11 01:30:43 2022 +0100 |
tree | 9bef96af751771bf32ddce1e9f80d35fd27b093a | |
parent | d36c85a6e6212cdd09b732c64610cce9d7ee87d6 [diff] |
usb: gadget: ci: Avoid null pointer dereference The ci_req->hw_buf can be NULL, test whether it is and if so, avoid accessing it. Else, the system may crash. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Peter Chen <peter.chen@nxp.com> Cc: Li Jun <jun.li@nxp.com> Cc: Peng Fan <peng.fan@nxp.com>