History

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().

Andrew Morton committed 11 years ago

Commit 92788ac1 parent 91b57191 file · +1 −1Browse files

Unified · Split

drivers/input/evdev.c+1−1
@@ -421,7 +421,7 @@ static int evdev_open(struct inode *inode, struct file *file) · 420 unmodified lines
421 421
422 err_free_client:422 err_free_client:
423 evdev_detach_client(evdev, client);423 evdev_detach_client(evdev, client);
424 kfree(client);424 kvfree(client);
425 return error;425 return error;
426}426}
427 427