Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751768AbbHQXQT (ORCPT ); Mon, 17 Aug 2015 19:16:19 -0400 Received: from mail-yk0-f170.google.com ([209.85.160.170]:34178 "EHLO mail-yk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750875AbbHQXQR (ORCPT ); Mon, 17 Aug 2015 19:16:17 -0400 MIME-Version: 1.0 In-Reply-To: <55D238D4.20800@broadcom.com> References: <339fc87526f51233b262315b2297f68e3b00c7b6.1439838526.git.raphael.beamonte@gmail.com> <55D238D4.20800@broadcom.com> From: =?UTF-8?Q?Rapha=C3=ABl_Beamonte?= Date: Mon, 17 Aug 2015 19:15:57 -0400 X-Google-Sender-Auth: jBWDOSeZH8Nb-MtoccVVIbWkjuw Message-ID: Subject: Re: [PATCHv2 5/5] staging: wilc1000: replace MALLOC_WILC_BUFFER() macro to avoid possible memory leak To: Arend van Spriel Cc: Johnny Kim , Rachel Kim , Dean Lee , Chris Park , Greg Kroah-Hartman , linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Dan Carpenter Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 937 Lines: 24 2015-08-17 15:41 GMT-04:00 Arend van Spriel : > Probable MACRO_WILC_BUFFER should be MALLOC_WILC_BUFFER here. Good catch! > There is really no need to print an error message here. kmalloc will blurb > enough info when it fails. Ok! > So these buffers are globals? So does this driver support multiple devices, > ie. how are these used when two wilc1000 supported devices are present. Not sure. I mostly did code refactoring to have a clearer source code and try to respect the kernel code style. I don't have a compatible device to try and test it unfortunately. Thanks for the feedback. I just sent a revised version of the patch taking your comments into account. -- 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/