summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2025-02-07 12:39:04 +0300
committerPaolo Abeni <pabeni@redhat.com>2025-02-11 12:20:52 +0300
commit39e926c3a21b25af6cae479fbb752f193240ce03 (patch)
tree62e8ba08b404ae471927c6cdf3c20b1c96843182 /scripts/gdb/linux/proc.py
parentf7d07cd4f77d77f366c8ffbb8ba8b61f614e5fce (diff)
downloadlinux-39e926c3a21b25af6cae479fbb752f193240ce03.tar.xz
ptp: vmclock: Don't unregister misc device if it was not registered
vmclock_remove() tries to detect the successful registration of the misc device based on the value of its minor value. However that check is incorrect if the misc device registration was not attempted in the first place. Always initialize the minor number, so the check works properly. Fixes: 205032724226 ("ptp: Add support for the AMZNC10C 'vmclock' device") Cc: stable@vger.kernel.org Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Acked-by: Richard Cochran <richardcochran@gmail.com> Reviewed-by: David Woodhouse <dwmw@amazon.co.uk> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions