Skip to content

Commit

Permalink
Input: evdev - use kvfree() in evdev_release()
Browse files Browse the repository at this point in the history
Use kvfree() instead of open-coding it.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
penberg authored and dtor committed May 15, 2015
1 parent 6dd0633 commit 67367fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/input/evdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,7 @@ static int evdev_release(struct inode *inode, struct file *file)

evdev_detach_client(evdev, client);

if (is_vmalloc_addr(client))
vfree(client);
else
kfree(client);
kvfree(client);

evdev_close_device(evdev);

Expand Down

0 comments on commit 67367fd

Please sign in to comment.