]> git.baikalelectronics.ru Git - kernel.git/commit
fix a kmap leak in virtio_console
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 2 Feb 2014 12:05:05 +0000 (07:05 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 9 Feb 2014 20:21:16 +0000 (15:21 -0500)
commitc37ba4f97f643b91a860aa3eb7f4eda75f0d22a7
tree2c956f57a8c176d0df62a16adc33a2d31b78a929
parent6fd4edb8594cfb65bab4a47e4591fc1553b34e70
fix a kmap leak in virtio_console

While we are at it, don't do kmap() under kmap_atomic(), *especially*
for a page we'd allocated with GFP_KERNEL.  It's spelled "page_address",
and had that been more than that, we'd have a real trouble - kmap_high()
can block, and doing that while holding kmap_atomic() is a Bad Idea(tm).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/char/virtio_console.c