mfd: dln2: Fix memory leak in dln2_probe()
[platform/kernel/linux-starfive.git] / drivers / mfd / dln2.c
index 6cd0b0c..c314972 100644 (file)
@@ -827,6 +827,7 @@ out_stop_rx:
        dln2_stop_rx_urbs(dln2);
 
 out_free:
+       usb_put_dev(dln2->usb_dev);
        dln2_free(dln2);
 
        return ret;