From patchwork Tue Oct 9 12:27:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dotan Barak X-Patchwork-Id: 1569871 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C5F8740D54 for ; Tue, 9 Oct 2012 12:28:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753480Ab2JIM2H (ORCPT ); Tue, 9 Oct 2012 08:28:07 -0400 Received: from eu1sys200aog103.obsmtp.com ([207.126.144.115]:37915 "HELO eu1sys200aog103.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754263Ab2JIM2A (ORCPT ); Tue, 9 Oct 2012 08:28:00 -0400 Received: from mtlsws123.lab.mtl.com ([82.166.227.17]) (using TLSv1) by eu1sys200aob103.postini.com ([207.126.147.11]) with SMTP ID DSNKUHQYS1Si2oJYMm+0zpCdmtlnPpZTHgjb@postini.com; Tue, 09 Oct 2012 12:27:59 UTC Received: from swl021.lab.mtl.com (swl021.lab.mtl.com [10.7.17.21]) by mtlsws123.lab.mtl.com (8.13.8/8.13.8) with ESMTP id q99CRs4t004798; Tue, 9 Oct 2012 14:27:54 +0200 From: Dotan Barak To: sean.hefty@intel.com Cc: linux-rdma@vger.kernel.org, Dotan Barak Subject: [PATCH 1/5] [librdmacm] rsocket: add missing va_end() after calling va_end() Date: Tue, 9 Oct 2012 14:27:48 +0200 Message-Id: <1349785672-1921-2-git-send-email-dotanb@dev.mellanox.co.il> X-Mailer: git-send-email 1.7.8.2 In-Reply-To: <1349785672-1921-1-git-send-email-dotanb@dev.mellanox.co.il> References: <1349785672-1921-1-git-send-email-dotanb@dev.mellanox.co.il> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Not doing so, may lead to resource leak. Signed-off-by: Dotan Barak Reviewed-by: Yishai Hadas --- src/rsocket.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/rsocket.c b/src/rsocket.c index 4c4821b..278c8ec 100644 --- a/src/rsocket.c +++ b/src/rsocket.c @@ -2002,6 +2002,7 @@ int rfcntl(int socket, int cmd, ... /* arg */ ) va_start(args, cmd); switch (cmd) { case F_GETFL: + va_end(args); return (int) rs->fd_flags; case F_SETFL: param = va_arg(args, long);