aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorDinghao Liu <[email protected]>2023-09-22 17:40:44 +0800
committerDavid S. Miller <[email protected]>2023-10-02 07:19:22 +0100
commitcaa0578c1d487d39e4bb947a1b4965417053b409 (patch)
tree9e3494ae886cc677501f234f4ea57305781ed81b /tools/testing/selftests/bpf/prog_tests/autoload.c
parentc889a99a21bf124c3db08d09df919f0eccc5ea4c (diff)
ptp: ocp: Fix error handling in ptp_ocp_device_init
When device_add() fails, ptp_ocp_dev_release() will be called after put_device(). Therefore, it seems that the ptp_ocp_dev_release() before put_device() is redundant. Fixes: 773bda964921 ("ptp: ocp: Expose various resources on the timecard.") Signed-off-by: Dinghao Liu <[email protected]> Reviewed-by: Vadim Feodrenko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions