]> git.hungrycats.org Git - linux/commit
[PATCH] Fix hvc console sleep in spinlock bug
authorAndrew Morton <akpm@osdl.org>
Mon, 15 Mar 2004 23:29:15 +0000 (15:29 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 15 Mar 2004 23:29:15 +0000 (15:29 -0800)
commitc7e74ca2f09c682535cd2874085f534efd35c6f5
treebf06a24153f9eb34703e5d7b99be40a57407dbe3
parent824315d917587b0d645602f9eb7be873abb48d36
[PATCH] Fix hvc console sleep in spinlock bug

From: Jeremy Kerr <jk@ozlabs.org>

This patch fixes the sleep in spinlock hvc bug in hvc_write().

The code is a little longer, but protects against large amounts of memory
being kmalloc()ed by userspace, and minimises calls to copy_from_user().
drivers/char/hvc_console.c