Re: [PATCH] libnvdimm: use devm_add_action_or_reset()

2016-06-16 Thread Johannes Thumshirn
On Wed, Jun 15, 2016 at 04:31:55PM -0700, Dan Williams wrote: > Clean up needless calls to the action routine by letting > devm_add_action_or_reset() call it automatically. This does cause the > disk to registered and immediately unregistered when a memory allocation > fails, but the block layer s

[PATCH] libnvdimm: use devm_add_action_or_reset()

2016-06-15 Thread Dan Williams
Clean up needless calls to the action routine by letting devm_add_action_or_reset() call it automatically. This does cause the disk to registered and immediately unregistered when a memory allocation fails, but the block layer should be prepared for such an event. Reported-by: Sudip Mukherjee Si