mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
6a02124c87
The platform device is not released when platform_device_add_data()
fails. And platform_device_put() perfom one more pointer check than
put_device() to check for errors in the 'pdev' pointer.
Use platform_device_put() to release platform device in
platform_device_add()/platform_device_add_data()/
platform_device_add_resources() error case.
Fixes:
|
||
---|---|---|
.. | ||
hmem | ||
pmem | ||
bus.c | ||
bus.h | ||
dax-private.h | ||
device.c | ||
Kconfig | ||
kmem.c | ||
Makefile | ||
pmem.c | ||
super.c |