]> 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)
commit71453947a15f28e56ad3138bf140be24f87d9e5b
tree2c956f57a8c176d0df62a16adc33a2d31b78a929
parent3d6c770db49803f7e6ec0d3c07e5b49d553dcce3
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