Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5675763iog; Thu, 23 Jun 2022 03:09:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1togoSxQ7VC7iwTwqmxS31Nkk5ofwr4eZeAusDHHTOndjGbBv01QgxUyWHiXvfjuSqJPZhQ X-Received: by 2002:a05:6402:4301:b0:42d:e8fb:66f7 with SMTP id m1-20020a056402430100b0042de8fb66f7mr9774397edc.229.1655978964747; Thu, 23 Jun 2022 03:09:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655978964; cv=pass; d=google.com; s=arc-20160816; b=E1rpXLhae91QY+gXY/vyJ0V83pyAON/85aRdG26rXmOUFPtSaPvHIfe/k93KjF0Y6H VpJ86TjwPRG0masISFhX/Y49NkB5VT7gZiSw20FevhpZNZPSnnkxLYSrXmmHu3RLfgBg Hmv6LdQWsjR+CaLA2K+VgeSCwPtNUZ0lqGXlAorlasnU8ZyZFdLbvMUBcyUSav+gPQe/ OiSTJb5UueRbq845Vk5Il2gHoTwoAhnFuBB1OtSCPVn45ghOTwYv7/nW6iQW+yStQSeP 5nANe4vfQbh62JJKmLDPMgfvK/60lbgFrKzuuPKYZAVbpcraYAI26BIv/oPH/GVwbZ+d /Yeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=2o/KgIZoDKx/ZyWpvbfvfejhTGSAkTpF3jUZIjPwQyM=; b=qUfWSGeEueqXYP3WUlrsBEQZncnOEdJ4GZWl1S5OGxO9WKKxbPrkwNIsk/rjNQgkfU 45/uONqoAGqijWlu8Ypd/HPz//ynAMwBB3pjTCkACxzWyPUxh/fMkz/ghhVU33+uSsKC jJ4KvLE1S44d/Dp9oCw44qJX/BXnxEeeDB+/56YpYvg+Nv5r/T0pBVFthyuUmX1LBWDd x39XOZ6CEa53XSK4gf5T0QBA74nbk0EUSh5IK1Uwkr/eY9MOEOQdP2Tzf0xqiMdOvc4B u5VT9Hx8s1fY7HzFUWYijO6KpRWo5nGimOT8Q9g6adWgthaUY54Xd/xlWD/ZaqtHUHeG tcDQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=SNDuiO7m; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a17090627c200b00712237d858dsi16939012ejc.577.2022.06.23.03.08.46; Thu, 23 Jun 2022 03:09:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=SNDuiO7m; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231387AbiFWKGS (ORCPT + 99 others); Thu, 23 Jun 2022 06:06:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230303AbiFWKGJ (ORCPT ); Thu, 23 Jun 2022 06:06:09 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2044.outbound.protection.outlook.com [40.92.89.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 898202AC4E for ; Thu, 23 Jun 2022 03:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Of9ykHy6tpH7te/SiI9U1VAN/1wHfVuQObJfT/yS2c/Y69N7chbQjvh5HxniSzSyHtXE8gqxhhv0XtdTkPlNqMYB834RywMYSahJKMKCdsEh6SDuhT6qq9YYjGkelxBozEDN3tqf7X7hcU/uBskIGZxxME1QUOMDdZ/lIJLROC0vONUVn0WFDSZtEtD/50C0Mgd2zXkSUILA9ZXemmfq+ENJ3k9E2u3TQyJ7plO5a10mq8Rq9xJN3MxXFom7561sPLNhmMi8BNLXdNZsRKzVs70clCLDChlAK2FmJ8ga5ca9UOL7ONq/pfsLL1mb5t9VKFYG2od3MbpbPa7/ULe07Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2o/KgIZoDKx/ZyWpvbfvfejhTGSAkTpF3jUZIjPwQyM=; b=HfsNULsWgFFeCjpezKGDMXuoeLDOH8cJr+rdHmZNU3cyZnY5j6Yx4Ym0XgjD2gZV1nApsJd+FR3LeOhFVMupk2IJkHGNMxiJGzbsELcls30gS6S7JeZzCzbriuHbA1EzkOk3KgRVNs5dvaLZG8N2IdGxNRm7rQPXmOJ+LYFC9bwggiwOoShTv8MwcuoczxKltZ6uvehS+nz2mFYWR8Oov4RGsHWqPQTeIwf9mjRVAzlBTMtj4xet870uQ32sTaEQ8CKXtxLEvtkQT1Pf5np9kgAkNcUxeBD42XbTZl5g1mLo6G72gR/ZmPzKPrSaUtF9i1wMfKVUlopfS4ZPD3C+8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2o/KgIZoDKx/ZyWpvbfvfejhTGSAkTpF3jUZIjPwQyM=; b=SNDuiO7m2ZG+HNCFl6r5vJl1VXDZhzJnQIG92RInQuQ9eejTWhgetP2Di3Jrumu8kOwoB/mQUZlKynyu4rb+f+XKWPql7oQIa/VZli9u3O3iJhQre3CksOq40D/KDNMuD9VAvo7niugJJGPS/zhpISOzDnWS1YTt8ELvGGnvHIMV4T4+d6UD2Z012uf2o2D3gBrPiy+iWQSyINxkkrFe7U4vG8fsWjievrpb40Z6mbbtPGq3n56/aT8HtL42iMFPiTfVd9lFV8GPwTl0y68/x7k3Xw6/5nIXC2nMjtvEkUyJ2aaoCQl6oVaxNa6gyBVs6sM5Mgnb8Jup6SNN8WucRA== Received: from AM9P190MB1299.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:267::9) by VE1P190MB0879.EURP190.PROD.OUTLOOK.COM (2603:10a6:800:1ab::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.18; Thu, 23 Jun 2022 10:06:04 +0000 Received: from AM9P190MB1299.EURP190.PROD.OUTLOOK.COM ([fe80::c0f4:a98e:332a:2397]) by AM9P190MB1299.EURP190.PROD.OUTLOOK.COM ([fe80::c0f4:a98e:332a:2397%5]) with mapi id 15.20.5353.022; Thu, 23 Jun 2022 10:06:04 +0000 From: Felix Schlepper To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Felix Schlepper Subject: [PATCH v4 0/3] Staging: rtl8192e: Safer allocation and cleaner error handling Date: Thu, 23 Jun 2022 12:05:54 +0200 Message-ID: X-Mailer: git-send-email 2.36.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [jtOex5pSsFCK8iiVtaswH9nadQF2+qJ9] X-ClientProxiedBy: AM5PR0602CA0018.eurprd06.prod.outlook.com (2603:10a6:203:a3::28) To AM9P190MB1299.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:267::9) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 62fe2575-0f7a-4fc7-458e-08da54fffbbf X-MS-Exchange-SLBlob-MailProps: EpEO96k6WokJw9qhnqKg7+E0MqObEIk6+wB7mBLHFAHalE8WR7uL1a/22zddvKi3ErKXnmNo1tEd2k4Cwnm6PuIeasC16zhQbXi/r34u7j/kGZTEAKkVV1fAPKYXMYUPj5/wbGfVPtR1SmT3PVojVe36VHIcjGTdjZ2lgdIrOs8bYOUvtdtRjGFHx7mVYq6Npht1ggOPr67GcQziKT5g5osmf1mVF1VbbUN+aaZIFNtLPgyMxBsRBQ/uEA2pe6hKe3U5KYCpHy5oVRAnpNj3UXLHIogJOgN/3hCXa0MZaHzwg/d0B2HRwKOk2WsYrHAJZspE+aNUEzN9xudlvmoggvADOuGx/Sq5Vl/bdbXoxqNTFd6md45lG30s9aatKd5dk7c72L3oiTZ/38Dn6U7rG6IVtD/3lSo0Q2fSI5wdnBD6FFzerkkz6LefxryNOWculBTa1zCTZ1CXZPFSo2TaDH9LRN4bBSSQ6TVi2WanxrzpYlId+k3cDu9SIWjjQb+orkY0CrDwigYANLxI8NV38PuzhYpX+U+vWlaOCAPm3THOU8e/hHQw8zluiqHT7ULnd8aGDLC+xMOKbPPNtXyeZFBqC1VkA6FYYPn4P8FjPl948UjZWUSLPJEYUljMCP6SGw8jY3nYGssdD16tWcNPHRHwM49q4RWwp+TtkFaAW4NoNskl1zfp8kwThDRBlW6+p/oYzqd9TXLGLdgOFrYf/pDe2Cs+PvkxDwOrhASHvg/qDI3/JD3oR9BKsRBWVNE9jk5GG4H8Krc= X-MS-TrafficTypeDiagnostic: VE1P190MB0879:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FdShZXVWEBHEvflUHyhJ+s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?= =?us-ascii?Q?qn5oxHOk5hbdlHshmoRcDubw3Gt1fgQGJp6slCCcxFrBTPwtueAhMXeox11B?= =?us-ascii?Q?eUBuqoN1waxcMWKNo6jsg8+NIVW3gRnHN1v/rTUvgw=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62fe2575-0f7a-4fc7-458e-08da54fffbbf X-MS-Exchange-CrossTenant-AuthSource: AM9P190MB1299.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2022 10:06:04.4918 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1P190MB0879 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: - replaced kmalloc with kzalloc against memory initialization defects, thus also removing a memset - made error handling more consistent v3: - Split into smaller commits so that it's easier to review v4: - clearer commit messages - added missing kfree Felix Schlepper (3): Staging: rtl8192e: Use struct_size Staging: rtl8192e: Using kzalloc and delete memset Staging: rtl8192e: Cleaning up error handling drivers/staging/rtl8192e/rtllib_tx.c | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) -- 2.36.1