[PATCH 0/2] mtd: use put_device() if device_register fail

From: Arvind Yadav
Date: Fri Mar 09 2018 - 05:51:48 EST


if device_register() returned an error! Always use put_device()
to give up the reference initialized.

Arvind Yadav (2):
[PATCH 1/2] mtd: use put_device() if device_register fail
[PATCH 2/2] mtd: ubi: use put_device() if device_register fail

drivers/mtd/mtdcore.c | 1 +
drivers/mtd/ubi/vmt.c | 1 +
2 files changed, 2 insertions(+)

--
1.9.1