diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2014-12-02 15:59:31 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-03 09:35:38 -0800 |
commit | 92788ac1eb06e69a822de45e2a8a63fa45eb5be2 (patch) | |
tree | e4cff1d7c5943d776e2a448c1fb6fade6d4139b7 /ipc/sem.c | |
parent | 91b57191cfd152c02ded0745250167d0263084f8 (diff) | |
download | linux-92788ac1eb06e69a822de45e2a8a63fa45eb5be2.tar.gz linux-92788ac1eb06e69a822de45e2a8a63fa45eb5be2.tar.bz2 linux-92788ac1eb06e69a822de45e2a8a63fa45eb5be2.zip |
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>
Diffstat (limited to 'ipc/sem.c')
0 files changed, 0 insertions, 0 deletions