]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - block/blk-throttle.c
blk-throttle: fix NULL pointer dereference in throtl_schedule_pending_timer
[mirror_ubuntu-bionic-kernel.git] / block / blk-throttle.c
index fc13dd0c6e3956a84913d9e71132c0f321a67280..3b751f706c6180c490cfd38a44f49621a5780021 100644 (file)
@@ -698,7 +698,7 @@ static void throtl_dequeue_tg(struct throtl_grp *tg)
 static void throtl_schedule_pending_timer(struct throtl_service_queue *sq,
                                          unsigned long expires)
 {
-       unsigned long max_expire = jiffies + 8 * sq_to_tg(sq)->td->throtl_slice;
+       unsigned long max_expire = jiffies + 8 * sq_to_td(sq)->throtl_slice;
 
        /*
         * Since we are adjusting the throttle limit dynamically, the sleep