aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorArvind Yadav <[email protected]>2018-03-09 14:09:59 +0000
committerGreg Kroah-Hartman <[email protected]>2018-03-15 17:55:52 +0100
commitbd329f028f1cd51c7623c326147af07c6d832193 (patch)
tree62d02dbc0e99853b9238c5245e8dd3383b0c2171 /lib/mpi/mpi-cmp.c
parent8de602885cd8bf56b05b668aee574bd8a241c33f (diff)
slimbus: core: use put_device() instead of kfree()
Never directly free @dev after calling device_register(), even if it returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions