]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/input/evdev.c: don't kfree() a vmalloc address
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 2 Dec 2014 23:59:31 +0000 (15:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Dec 2014 17:35:38 +0000 (09:35 -0800)
commitbb7d431bd34c59be351d6eb93cf306a049566cf5
treee4cff1d7c5943d776e2a448c1fb6fade6d4139b7
parent5fc8c348ce31d2e11a41abb1100780027e6ba37c
drivers/input/evdev.c: don't kfree() a vmalloc address

If kzalloc() failed and then evdev_open_device() fails, evdev_open()
will pass a vmalloc'ed pointer to kfree.

This might fix https://bugzilla.kernel.org/show_bug.cgi?id=88401, where
there was a crash in kfree().

Reported-by: Christian Casteyde <casteyde.christian@free.fr>
Belatedly-Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Henrik Rydberg <rydberg@euromail.se>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/input/evdev.c