aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2022-08-25 14:38:57 -0700
committerLeon Romanovsky <[email protected]>2022-08-28 13:02:04 +0300
commitc8e4c23976554fb9dda1658bd1a3914b202815cd (patch)
treef803350df7c4823125c1e7033b56f7e8a50b29d2 /scripts/bpf_doc.py
parent3d67e7e236adb4965ff9834bb7125686ecf9654a (diff)
RDMA/srp: Rework the srp_add_port() error path
device_register() always calls device_initialize() so calling device_del() is safe even if device_register() fails. Implement the following advice from the comment block above device_register(): "NOTE: _Never_ directly free @dev after calling this function, even if it returned an error! Always use put_device() to give up the reference initialized in this function instead." Keep the kfree() call in the error path since srp_release_dev() does not free the host. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions