Tag: 005a64307d5d3ef895e7821df4cad7739bab392e

usb: gadget: lpc32xxx_udc: Fix NULL dereference

Author: Peter Chen <peter.chen@freescale.com> udc is then checked for NULL, if NULL, it is then dereferenced as udc->dev, it is found using Coccinelle. We simplify the code to fix this problem, and we delete some conditions at if {} which will never be met. Reported-by: Tapasweni Pathak Reported-by : Julia Lawall Signed-off-by: Peter Chen Signed-off-by: …

Lire la suite