Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033866AbbKFWEo (ORCPT ); Fri, 6 Nov 2015 17:04:44 -0500 Received: from mta01.ornl.gov ([128.219.177.14]:56613 "EHLO mta01.ornl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030298AbbKFWEn convert rfc822-to-8bit (ORCPT ); Fri, 6 Nov 2015 17:04:43 -0500 X-SG: RELAYLIST X-IronPort-AV: E=Sophos;i="5.20,254,1444708800"; d="scan'208";a="115598787" From: "Simmons, James A." To: "'Shivani Bhardwaj'" , "gregkh@linuxfoundation.org" CC: "oleg.drokin@intel.com" , "devel@driverdev.osuosl.org" , "andreas.dilger@intel.com" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 1/3] Staging: lustre: module: Replace function calls Thread-Topic: [PATCH 1/3] Staging: lustre: module: Replace function calls Thread-Index: AQHRGLc7myQsf2H2nkW28HxmdT9Xip6PjLcA Date: Fri, 6 Nov 2015 22:04:41 +0000 Message-ID: <29aacb945be3417d96c1ebc49d9eeb6c@EXCHCS32.ornl.gov> References: <1cdd091b39e2202a0810efe538ddd520da967ed4.1446830119.git.shivanib134@gmail.com> In-Reply-To: <1cdd091b39e2202a0810efe538ddd520da967ed4.1446830119.git.shivanib134@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [128.219.12.132] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1806 Lines: 51 >From: devel [mailto:driverdev-devel-bounces@linuxdriverproject.org] On Behalf Of Shivani Bhardwaj >Sent: Friday, November 06, 2015 12:18 PM >To: gregkh@linuxfoundation.org >Cc: oleg.drokin@intel.com; devel@driverdev.osuosl.org; andreas.dilger@intel.com; linux-kernel@vger.kernel.org >Subject: [PATCH 1/3] Staging: lustre: module: Replace function calls > >Replace the calls of function cfs_trace_free_string_buffer() with >kfree() as the former function is not required. > >Signed-off-by: Shivani Bhardwaj >--- > drivers/staging/lustre/lustre/libcfs/module.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Acked-by: James Simmons diff --git a/drivers/staging/lustre/lustre/libcfs/module.c b/drivers/staging/lustre/lustre/libcfs/module.c index 50e8fd2..516a9e7 100644 --- a/drivers/staging/lustre/lustre/libcfs/module.c +++ b/drivers/staging/lustre/lustre/libcfs/module.c @@ -392,7 +392,7 @@ static int __proc_dobitmasks(void *data, int write, } else { rc = cfs_trace_copyin_string(tmpstr, tmpstrlen, buffer, nob); if (rc < 0) { - cfs_trace_free_string_buffer(tmpstr, tmpstrlen); + kfree(tmpstr); return rc; } @@ -402,7 +402,7 @@ static int __proc_dobitmasks(void *data, int write, *mask |= D_EMERG; } - cfs_trace_free_string_buffer(tmpstr, tmpstrlen); + kfree(tmpstr); return rc; } -- 2.1.0 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel -- 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/