]> git.baikalelectronics.ru Git - kernel.git/commit
usb/hcd: Fix a NULL vs IS_ERR() bug in usb_hcd_setup_local_mem()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 7 Jun 2019 13:57:09 +0000 (16:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 08:40:02 +0000 (10:40 +0200)
commite2b5cdd77f7399ea0b4b29c95c305ddf6f5f3ae7
treed1cb2b90a6a3c9936aa8956507f02748c4e5eef9
parent19bf25346807a96f49964ad664bbcdba6733d532
usb/hcd: Fix a NULL vs IS_ERR() bug in usb_hcd_setup_local_mem()

The devm_memremap() function doesn't return NULL, it returns error
pointers.

Fixes: 57e3ee6c2078 ("USB: use genalloc for USB HCs with local memory")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lore.kernel.org/r/20190607135709.GC16718@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd.c