aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2021-03-29 18:12:02 +0300
committerGreg Kroah-Hartman <[email protected]>2021-04-05 13:18:21 +0200
commit3f6b6536a73fad0c2c82db1672fc500cc15ff551 (patch)
tree4885e84c2d77175cd06385036628d06a47762182 /lib/mpi/mpi-inline.h
parentc8a9c285f136f0cc65ac8328cd1710b155ad3df8 (diff)
software node: Free resources explicitly when swnode_register() fails
Currently we have a slightly twisted logic in swnode_register(). It frees resources that it doesn't allocate on error path and in once case it relies on the ->release() implementation. Untwist the logic by freeing resources explicitly when swnode_register() fails. Currently it happens only in fwnode_create_software_node(). Tested-by: Daniel Scally <[email protected]> Reviewed-by: Daniel Scally <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions