]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadget: udc: fix wrong pointer passed to IS_ERR() and PTR_ERR()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 30 Mar 2021 13:01:59 +0000 (21:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Apr 2021 13:40:38 +0000 (15:40 +0200)
commitf75cfd40f5ed24317c8b53816b3c117120f239c4
treeb9fbc99608eb8d93218b59ef35a865b040bec58e
parente662ea078c7cea6508f8170345c7992d5d3db63a
USB: gadget: udc: fix wrong pointer passed to IS_ERR() and PTR_ERR()

IS_ERR() and PTR_ERR() use wrong pointer, it should be
udc->virt_addr, fix it.

Fixes: 409a7a7e4cba ("usb: gadget: udc: Add Synopsys UDC Platform driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210330130159.1051979-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/snps_udc_plat.c