Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934978AbbEOUqP (ORCPT ); Fri, 15 May 2015 16:46:15 -0400 Received: from mail-ig0-f182.google.com ([209.85.213.182]:38114 "EHLO mail-ig0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934201AbbEOUqL (ORCPT ); Fri, 15 May 2015 16:46:11 -0400 Date: Fri, 15 May 2015 13:46:07 -0700 From: Dmitry Torokhov To: Pekka Enberg Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/14] drivers/input/evdev.c: Use kvfree() in evdev_release() Message-ID: <20150515204607.GD696@dtor-ws> References: <1431714923-23028-1-git-send-email-penberg@kernel.org> <1431714923-23028-8-git-send-email-penberg@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431714923-23028-8-git-send-email-penberg@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1028 Lines: 39 On Fri, May 15, 2015 at 09:35:17PM +0300, Pekka Enberg wrote: > Use kvfree() instead of open-coding it. > > Cc: Dmitry Torokhov > Signed-off-by: Pekka Enberg Applied, thank you. > --- > drivers/input/evdev.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c > index a18f41b..9d35499 100644 > --- a/drivers/input/evdev.c > +++ b/drivers/input/evdev.c > @@ -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); > > -- > 2.1.0 > -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/