Skip to content
Commit 5e05bf58 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Rusty Russell
Browse files

virtio: Avoid possible kernel panic if DEBUG is enabled.



The virtqueue_add() calls START_USE() upon entry. The virtqueue_kick() is
called if vq->num_added == (1 << 16) - 1 before calling END_USE().
The virtqueue_kick_prepare() called via virtqueue_kick() calls START_USE()
upon entry, and will call panic() if DEBUG is enabled.
Move this virtqueue_kick() call to after END_USE() call.

Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 1862ee22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment