Home
last modified time | relevance | path

Searched hist:"5 e05bf5833eb3dd97b6b6a52301d81e033714cb3" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/virtio/
H A Dvirtio_ring.cdiff 5e05bf5833eb3dd97b6b6a52301d81e033714cb3 Tue Feb 10 22:31:13 CST 2015 Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> 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: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>