mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
ptp: ocp: Fix the error handling path for the class device.
Move the put_device() call to the error handling path, so the device is released after the .release callback, avoiding a use-after-free. Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
596690e9f4
commit
d12f23fa51
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue