From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Tue, 12 Jun 2012 19:41:16 +0800 References: <1337119580-1026-1-git-send-email-martin@hundeboll.net> <1339485903-8857-1-git-send-email-sven@narfation.org> In-Reply-To: <1339485903-8857-1-git-send-email-sven@narfation.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201206121941.17220.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCHv2] batman-adv: Correctly check return value from debugfs_create_dir Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Tuesday, June 12, 2012 15:25:03 Sven Eckelmann wrote: > From: Martin Hundeb=C3=B8ll >=20 > The setup code in batadv_socket_setup() and debug_log_setup() wrongly > assumes that debugfs_create_file() returns !0 on error. Since it > actually returns a pointer on success[1], the following check should > be inverted. >=20 > Also, use the return value from the two setup functions in > batadv_debugfs_add_meshif(). >=20 > [1] http://www.fsl.cs.sunysb.edu/kernel-api/re464.html >=20 > Signed-off-by: Martin Hundeb=C3=B8ll > [sven@narfation.org: Fix conflicts with namespace patches] > Signed-off-by: Sven Eckelmann > --- > debugfs.c | 11 +++++++---- > icmp_socket.c | 4 ++-- > 2 files changed, 9 insertions(+), 6 deletions(-) Applied in revision 86b9780. Thanks, Marek