]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mtd: rawnand: hisi504: fix the probe function error path
authorMiquel Raynal <miquel.raynal@bootlin.com>
Sat, 21 Apr 2018 18:00:39 +0000 (20:00 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 29 Apr 2018 06:56:44 +0000 (08:56 +0200)
commit6f533c463105472b71587b9bf8532f34f9d60deb
tree1be0d443ee7197a438956b8897769f09bbbe3a52
parent9326dc754c64996ccdc354413674f42486590574
mtd: rawnand: hisi504: fix the probe function error path

An error after nand_scan_tail() should trigger a nand_cleanup() and not
a nand_release(). The latter doing an mtd_device_unregister() which is
not needed if mtd_device_register() failed.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/hisi504_nand.c