aboutsummaryrefslogtreecommitdiffstats
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorLoic Pallardy <[email protected]>2016-12-14 15:11:00 +0000
committerBjorn Andersson <[email protected]>2016-12-30 11:15:42 +0000
commitc81c0e0710f031cb09eb7cbf0e75e6754d1d8346 (patch)
treee517c5a8f9c4c359908d192eb64c69acb237938a /lib/timerqueue.c
parentLinux 4.10-rc1 (diff)
downloadkernel-c81c0e0710f031cb09eb7cbf0e75e6754d1d8346.tar.gz
kernel-c81c0e0710f031cb09eb7cbf0e75e6754d1d8346.zip
remoteproc: fix vdev reference management
Commit 2b45cef5868a ("remoteproc: Further extend the vdev life cycle") extends kref support for vdev management. It introduces a regression when following sequence is executed: rproc_boot --> rproc_shutdown --> rproc_boot Second rproc_boot call crashes on register_virtio_device as device is already existing. Issue is previous vdev is never released when rproc is stop because associated refcount is too high. kref_get introduces is not needed as kref_init already initializes krefcount to 1 because it considers associated variable as used. This introduces a misalignment between kref_get and kref_put calls. Fixes: 2b45cef5868a ("remoteproc: Further extend the vdev life cycle") Signed-off-by: Loic Pallardy <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions