Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752825Ab0LUTDT (ORCPT ); Tue, 21 Dec 2010 14:03:19 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:53989 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164Ab0LUTDR (ORCPT ); Tue, 21 Dec 2010 14:03:17 -0500 From: Arnd Bergmann To: Thiago Farina Subject: Re: [PATCH] drivers/media/video/v4l2-compat-ioctl32.c: Check the return value of copy_to_user Date: Tue, 21 Dec 2010 20:03:11 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.37-rc6-next-20101220+; KDE/4.5.1; x86_64; ; ) Cc: linux-kernel@vger.kernel.org, Guennadi Liakhovetski , Mauro Carvalho Chehab , linux-media@vger.kernel.org References: <201012211925.38201.arnd@arndb.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201012212003.11446.arnd@arndb.de> X-Provags-ID: V02:K0:cC9PRPmZQV5bc2EDUKNDSc8ZNy15SJLJ+d8HwfmSpoW w68dbwvN7X2qpYLZLvEWqwE4W39FzTRde/zmXW1UHlrn1vXsHP ZJXEG+WfmDlByRTd/eaojzzb3kFU3Os2LPgwgsj0u6EPgYUiKY MfyI6k3YkGVRCv5mU3uLaK/LAtW+6u0718PP+VckRC4otW3/GV MnibiRQ/hopC1Q6cUBmTA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 658 Lines: 17 On Tuesday 21 December 2010 19:34:04 Thiago Farina wrote: > > You can probably change this function to look at the return code of > > copy_to_user, but then you need to treat the put_user return code > > the same, and change the comment. > > > > Right, I will do the same with put_user, but I'm afraid of changing the comment. The comment makes no sense when the code doesn't do what is explained there. Arnd -- 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/