From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2AF82173 for ; Sun, 13 Jun 2021 22:00:04 +0000 (UTC) Received: by mail-lj1-f181.google.com with SMTP id r14so17310083ljd.10 for ; Sun, 13 Jun 2021 15:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IuKzpRirfVOS5Gk5Z2HWNzA9wqs1tgOjY1RVjElESO4=; b=jVU9UqWAVt/ZUQbdCzoJfsQnuMYUTLINnFEW2yVkI3/Gu7aYAA9wURhXRqNXguMEZA uqJLrQUlI6YBEU18ZXKB8J+jO67/yUWLWUkwDioHOr+oeuYXQ6tzkei/Ukd7MxO2sP7O EHbdHBMqMz4MML8Gn5yimoPxyYqDyw5XJyiS/6dxBfDYdFJG94jhj2Nk5yZFtvfc+Sa3 PB3fy7KHCsd0BTNhSmio0q9HBEW8HQlaZZewR+hg2DaU+2Cf+vUDRRokf9RZ+V2CIPzD bYheJO/OM8nuhgaRXK7q5SvzjMIfUaz4wEHBhAhI0P9fQwc0jK7m3MT6PLqL81QAPZhM IblQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IuKzpRirfVOS5Gk5Z2HWNzA9wqs1tgOjY1RVjElESO4=; b=B3/BPeAsv4A6jtHVChSHo5QKQw2ys4etCTAsdRRV+Tn7r6oqCoS1VhsBg/Vtt6gxpp yeDkM6eXQ377fREKDnXkrInNGAfvknQkih0zBlD9C+1yzYkWdE9XlbNE/IborkfO3OdR VasDx4jF8ohczRodopOa5mRiemfZSpVocO7zv1jz6qQQJcLQ3GEmiEycAItMCzKmfq9K I3JZdAch8Wa1y8E4I1PITFGZfBIIk+nKf5F5CzOtTrjirPBEshJU/n8it+vQZdG5EvsT pcYmAlzeP6PXOst48QX1GqzEtYxN3pKTDK06WhjYf7WglfuUwgEmT+2xhFXuvvgDodS7 FEjQ== X-Gm-Message-State: AOAM533GykX4yetgOUpFPtX0oJpFPlT1ZRWygvqsMbDrrCWFBur5mHrZ jjOTaKnhGxV7UPHu/yCeSUc= X-Google-Smtp-Source: ABdhPJwcPbPJhxO/kVLIRVqR+pqTqLB8htlWu/WFMC9nEMP4vtCWY0g1pZYxO7zAK/YIMRBUkk3e7w== X-Received: by 2002:a05:651c:38b:: with SMTP id e11mr11214582ljp.198.1623621602348; Sun, 13 Jun 2021 15:00:02 -0700 (PDT) Received: from localhost.localdomain ([94.103.229.24]) by smtp.gmail.com with ESMTPSA id o20sm1282335lfo.302.2021.06.13.15.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 15:00:02 -0700 (PDT) From: Pavel Skripkin To: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Pavel Skripkin Subject: [PATCH 0/3] staging: rtl8712: code improvment and bug fixes Date: Mon, 14 Jun 2021 00:59:30 +0300 Message-Id: X-Mailer: git-send-email 2.32.0 X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In this patch series I fixed 2 memory leaks in rtl8712 driver and made some code improvment. In the fisrt patch I removed redundant branching to improve code speed and make it more straightforward. The folowing 2 pathes fix 2 memory leaks in this driver. The first one fixes memory leak in the error handling path in r871xu_drv_init and the second one fixes memory leak in case of fw load failure. Pavel Skripkin (3): staging: rtl8712: remove redundant check in r871xu_drv_init staging: rtl8712: fix error handling in r871xu_drv_init staging: rtl8712: fix memory leak in rtl871x_load_fw_cb drivers/staging/rtl8712/hal_init.c | 3 +++ drivers/staging/rtl8712/os_intfs.c | 4 ---- drivers/staging/rtl8712/usb_intf.c | 32 ++++++++++++++++-------------- 3 files changed, 20 insertions(+), 19 deletions(-) -- 2.32.0