If "device is disconnected" check occurs to be true in ezusb_access_ltv(), it just return -ENODEV. But that means request_context is leaked since there are no any references to it anymore. The patch adds a call to ezusb_request_context_put() before return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: John W. Linville <linville@tuxdriver.com> |
||
|---|---|---|
| .. | ||
| airport.c | ||
| cfg.c | ||
| cfg.h | ||
| fw.c | ||
| fw.h | ||
| hermes.c | ||
| hermes.h | ||
| hermes_dld.c | ||
| hermes_dld.h | ||
| hermes_rid.h | ||
| hw.c | ||
| hw.h | ||
| Kconfig | ||
| main.c | ||
| main.h | ||
| Makefile | ||
| mic.c | ||
| mic.h | ||
| orinoco.h | ||
| orinoco_cs.c | ||
| orinoco_nortel.c | ||
| orinoco_pci.c | ||
| orinoco_pci.h | ||
| orinoco_plx.c | ||
| orinoco_tmd.c | ||
| orinoco_usb.c | ||
| scan.c | ||
| scan.h | ||
| spectrum_cs.c | ||
| wext.c | ||
| wext.h | ||