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

Arvind Yadav arvind.yadav.cs at gmail.com
Fri Mar 9 02:50:47 PST 2018


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




More information about the linux-mtd mailing list