]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
committerMike Snitzer <snitzer@redhat.com>
Fri, 26 Apr 2019 15:29:32 +0000 (11:29 -0400)
commit81bc6d150ace6250503b825d9d0c10f7bbd24095
tree417973021a7554627ba93b791c98fede30a5c0cb
parent514cf4f881dc82507d87d2ccd5e7478fd36632fa
dm delay: fix a crash when invalid device is specified

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>
drivers/md/dm-delay.c