aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorYue Hu <[email protected]>2019-08-07 11:01:30 +0800
committerZhang Rui <[email protected]>2019-09-24 09:56:08 +0800
commitadc8749b150c51e857ac248017971371f70de197 (patch)
treea6a29b38a9b967213c570faa417ddc0597bba648 /net/switchdev/switchdev.c
parent8c7aa184281c01fc26f319059efb94725012921d (diff)
thermal/drivers/core: Use put_device() if device_register() fails
Never directly free @dev after calling device_register(), even if it returned an error! Always use put_device() to give up the reference initialized. Clean up the rollback block also. Signed-off-by: Yue Hu <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions