]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
dm delay: fix a crash when invalid device is specified
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 25 Apr 2019 16:07:54 +0000 (12:07 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 12 Aug 2019 09:30:50 +0000 (11:30 +0200)
commit83728c2dc170994da5a9dcc2f3d800e6cf9676e3
treea5441cdf0386f907fe0917873af5d7f87d34b31d
parente44786074963b9ede891a6b1442dc72ed6298b87
dm delay: fix a crash when invalid device is specified

BugLink: https://bugs.launchpad.net/bugs/1837516
commit 81bc6d150ace6250503b825d9d0c10f7bbd24095 upstream.

When the target line contains an invalid device, delay_ctr() will call
delay_dtr() with NULL workqueue.  Attempting to destroy the NULL
workqueue causes a crash.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/md/dm-delay.c