From patchwork Thu Sep 12 21:05:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heimpold X-Patchwork-Id: 11143781 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6EE314ED for ; Thu, 12 Sep 2019 21:06:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C585520830 for ; Thu, 12 Sep 2019 21:06:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=heimpold.de header.i=@heimpold.de header.b="Ye/Czkbt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728179AbfILVGI (ORCPT ); Thu, 12 Sep 2019 17:06:08 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.20]:32056 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728158AbfILVGI (ORCPT ); Thu, 12 Sep 2019 17:06:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1568322367; s=strato-dkim-0002; d=heimpold.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=Mi1lP9vRc/aLKH9/n4xIdI/HXW4LRzD1v7CFSpx+60U=; b=Ye/CzkbtfKzIjHpewklTrL8weQ/tJ1ZCx1eu191LYLNnoaZQq7Men8oSBePJNmmPvv V67nXT91290qAu4XfZfLccSLVDQ1MHbzL+6U99ZR/Q2PgxrhEedybIMrHjt6sEjqHENz fIJTFuwLHXsoOyA4XtHxOUrST12Atwq4uVKrW2Jz9SFU/ZdbeXEvVd5aLUPmBvpmJFFt mnO355OgAXZ04LUP9cMXSMNbvlC6etlXrmF00Ju733QjN+W/Pi/6TF5/FWyj1nj14F31 u+dS7sEe8EXlEq/tfB69C8BCyu3ApUnhUVdv+oXsbSIZo1HBMM92mnuOCsjNO/zRR0q2 RGTw== X-RZG-AUTH: ":O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNytq77N6ZKUSN7PfdWTGQORRBv+ASfYPl1MuRNIWka+y/+PT9jgm56Hi0Pw27ZIWQ+TEC" X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr by smtp.strato.de (RZmta 44.27.0 AUTH) with ESMTPSA id 601202v8CL66d62 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Thu, 12 Sep 2019 23:06:06 +0200 (CEST) Received: from kerker.mhei.heimpold.itr (kerker.mhei.heimpold.itr [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id 00F5E1407DF; Thu, 12 Sep 2019 23:06:06 +0200 (CEST) From: Michael Heimpold To: chris@printf.net Cc: linux-mmc@vger.kernel.org, Michael Heimpold , Michael Heimpold Subject: [PATCH mmc-utils v2 1/5] Check calloc's return value before using the pointer Date: Thu, 12 Sep 2019 23:05:05 +0200 Message-Id: <20190912210509.19816-2-mhei@heimpold.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190912210509.19816-1-mhei@heimpold.de> References: <20190912210509.19816-1-mhei@heimpold.de> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Michael Heimpold If calloc fails, bail out immediately instead of trying to use the NULL pointer. Signed-off-by: Michael Heimpold Cc: Michael Heimpold Reviewed-by: Avri Altman --- lsmmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lsmmc.c b/lsmmc.c index 9737b37..e514c83 100644 --- a/lsmmc.c +++ b/lsmmc.c @@ -374,6 +374,8 @@ char *to_binstr(char *hexstr) char *binstr; binstr = calloc(strlen(hexstr) * 4 + 1, sizeof(char)); + if (!binstr) + return NULL; while (hexstr && *hexstr != '\0') { if (!isxdigit(*hexstr)) From patchwork Thu Sep 12 21:05:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heimpold X-Patchwork-Id: 11143787 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 20F3914ED for ; Thu, 12 Sep 2019 21:12:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E9AF620830 for ; Thu, 12 Sep 2019 21:12:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=heimpold.de header.i=@heimpold.de header.b="WA8Xl7P3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728296AbfILVMM (ORCPT ); Thu, 12 Sep 2019 17:12:12 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.50]:35137 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726308AbfILVMM (ORCPT ); Thu, 12 Sep 2019 17:12:12 -0400 X-Greylist: delayed 370 seconds by postgrey-1.27 at vger.kernel.org; Thu, 12 Sep 2019 17:12:11 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1568322730; s=strato-dkim-0002; d=heimpold.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=jgYyn4jQX9/p+J52AcewZ/hosJDJMQL4mbO+XVvuLE0=; b=WA8Xl7P3JxuJXLFm8AE1GZ7YjTaZRyO3agOSWJTqfDouhUDSZUk3ffQLMpzF7E2+Vg MRCOJtDfnnm8ogGiKVfB19sP6Ek1S77xN+fU9Y033+pkBlnHs4x2I5AItX5SfAVXOU5y SBu/D0/O5AmrnAJ8SkY0lKpcSneocCtmXALEj7OkaaJ5nqQEyUg+bh0WWUAZT7y445Iq ab7Cs0pXcO4/Dcq2RFGfFue/f1Y7QplD3Cv5yp++Et1jDDpKdSM1VIHNNt0xTomtjJar BBk9y/iYT9I1GQWJa/wimO4dcM/LYLoAx1Hb/vFbPU7trGDAVWjLcER8CDqiyWZP6xe7 q3Pg== X-RZG-AUTH: ":O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNytq77N6ZKUSN7PfdWTGQORRBv+ASfYPl1MuRNIWka+y/+PT9jgm56Hi0Pw27ZIWQ+TEC" X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr by smtp.strato.de (RZmta 44.27.0 AUTH) with ESMTPSA id 601202v8CL67d63 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Thu, 12 Sep 2019 23:06:07 +0200 (CEST) Received: from kerker.mhei.heimpold.itr (kerker.mhei.heimpold.itr [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id 16622140D37; Thu, 12 Sep 2019 23:06:06 +0200 (CEST) From: Michael Heimpold To: chris@printf.net Cc: linux-mmc@vger.kernel.org, Michael Heimpold , Michael Heimpold Subject: [PATCH mmc-utils v2 2/5] Cleanup memory in error case Date: Thu, 12 Sep 2019 23:05:06 +0200 Message-Id: <20190912210509.19816-3-mhei@heimpold.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190912210509.19816-1-mhei@heimpold.de> References: <20190912210509.19816-1-mhei@heimpold.de> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Michael Heimpold In case that we leave due to malformed string, free the allocated memory before returning. Signed-off-by: Michael Heimpold Cc: Michael Heimpold Reviewed-by: Avri Altman --- lsmmc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lsmmc.c b/lsmmc.c index e514c83..a53bc57 100644 --- a/lsmmc.c +++ b/lsmmc.c @@ -378,8 +378,10 @@ char *to_binstr(char *hexstr) return NULL; while (hexstr && *hexstr != '\0') { - if (!isxdigit(*hexstr)) + if (!isxdigit(*hexstr)) { + free(binstr); return NULL; + } if (isdigit(*hexstr)) strcat(binstr, bindigits[*hexstr - '0']); From patchwork Thu Sep 12 21:05:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heimpold X-Patchwork-Id: 11143783 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2F13713BD for ; Thu, 12 Sep 2019 21:09:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7FCBF20830 for ; Thu, 12 Sep 2019 21:09:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=heimpold.de header.i=@heimpold.de header.b="beO5k+V6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728286AbfILVJM (ORCPT ); Thu, 12 Sep 2019 17:09:12 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.53]:17797 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728291AbfILVJM (ORCPT ); Thu, 12 Sep 2019 17:09:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1568322551; s=strato-dkim-0002; d=heimpold.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=ch7+MgPL2eqXsrOgRJm70jGgAe32CnK/W2TesRYWmj0=; b=beO5k+V6LRRpZBgpbPf9MRZt/87zXy8rx7tkt2amNwt+5Ev4o1bI7KG09PCsh7p0d+ SVWQJTWOwP/AnVSfsIrpRw9oXjJ8tKH6zKfhzD3KMpocPhisfXRupRmtr+oufsZY3dcK /vSoUij5iV9w1QcHY4535Rl/9oUzxewo0tZbzwqwWejwMbnX1Y20YrLgEb9UPyY46QLs RJp1fRbJNR/RJO38xJ2GN4WKJu0Z9JwuQHgQfMaKJ0dFB9pO+/LIdQFmzTYKmuY6glhv T+2KPXuX06S6nHd0ZHCBEljP22b8+w7p+or7lLeEdmf+6thnLT5EvB704YCHkrZlcxoR HX1w== X-RZG-AUTH: ":O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNytq77N6ZKUSN7PfdWTGTOWHr182H3hxoqa1Ifw==" X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr by smtp.strato.de (RZmta 44.27.0 DYNA|AUTH) with ESMTPSA id 601202v8CL67d64 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Thu, 12 Sep 2019 23:06:07 +0200 (CEST) Received: from kerker.mhei.heimpold.itr (kerker.mhei.heimpold.itr [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id 295B8140D8B; Thu, 12 Sep 2019 23:06:06 +0200 (CEST) From: Michael Heimpold To: chris@printf.net Cc: linux-mmc@vger.kernel.org, Michael Heimpold , Michael Heimpold Subject: [PATCH mmc-utils v2 3/5] Fix parsing of character in to_binstr() Date: Thu, 12 Sep 2019 23:05:07 +0200 Message-Id: <20190912210509.19816-4-mhei@heimpold.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190912210509.19816-1-mhei@heimpold.de> References: <20190912210509.19816-1-mhei@heimpold.de> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Michael Heimpold When a hex-digit > 'a' or 'A' is read, we have to add an offset of 10 to access the valid symbol in our mapping table. Signed-off-by: Michael Heimpold Cc: Michael Heimpold Reviewed-by: Avri Altman --- lsmmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lsmmc.c b/lsmmc.c index a53bc57..e64117c 100644 --- a/lsmmc.c +++ b/lsmmc.c @@ -386,9 +386,9 @@ char *to_binstr(char *hexstr) if (isdigit(*hexstr)) strcat(binstr, bindigits[*hexstr - '0']); else if (islower(*hexstr)) - strcat(binstr, bindigits[*hexstr - 'a']); + strcat(binstr, bindigits[*hexstr - 'a' + 10]); else - strcat(binstr, bindigits[*hexstr - 'A']); + strcat(binstr, bindigits[*hexstr - 'A' + 10]); hexstr++; } From patchwork Thu Sep 12 21:05:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heimpold X-Patchwork-Id: 11143789 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9661916B1 for ; Thu, 12 Sep 2019 21:12:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6B14A20856 for ; Thu, 12 Sep 2019 21:12:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=heimpold.de header.i=@heimpold.de header.b="SBcJgZGi" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726308AbfILVMN (ORCPT ); Thu, 12 Sep 2019 17:12:13 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.165]:36786 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728360AbfILVMM (ORCPT ); Thu, 12 Sep 2019 17:12:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1568322731; s=strato-dkim-0002; d=heimpold.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=W3+ORcgRb3YoR56PvMa7ITKVnTYtWYqLToRTN5etO7I=; b=SBcJgZGiElMw1j0PCBVcgzYkkSAG0LKmMi2ZjbkEVUrvEILZ7d9FubkgZ6l0WIrRtV pQ7qopa1sGxaMGEky54QLXRMooLhvqX+c9TsxRSo0rMrdMlCwxgv6VyJUHVxdYiwQ8z7 zat9fZfyB15ZPs6PAc+/1vUEXzpq/k/ZdsqDtuDcJhg+uF7eGEVUAGgGs46lw1pR3910 66j79KAj1ZFXmVCi/z6itPLpaJeQeBXMrG+jYgLUUAedT+T56jFFTWDswn08GkOjtyNv 99ZrL7tSw+Frz82wqHWhoRr7deueTHYDf3Nv0sppFzo18Ev1V+3aoYhNchAjaJLF9n89 EnEw== X-RZG-AUTH: ":O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNytq77N6ZKUSN7PfdWTGQORRBv+ASfYPl1MuRNIWka+y/+PT9jgm56Hi0Pw27ZIWQ+TEC" X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr by smtp.strato.de (RZmta 44.27.0 AUTH) with ESMTPSA id 601202v8CL67d65 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Thu, 12 Sep 2019 23:06:07 +0200 (CEST) Received: from kerker.mhei.heimpold.itr (kerker.mhei.heimpold.itr [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id 3C4BF140D8E; Thu, 12 Sep 2019 23:06:06 +0200 (CEST) From: Michael Heimpold To: chris@printf.net Cc: linux-mmc@vger.kernel.org, Michael Heimpold , Michael Heimpold Subject: [PATCH mmc-utils v2 4/5] Optimize to_binstr() function Date: Thu, 12 Sep 2019 23:05:08 +0200 Message-Id: <20190912210509.19816-5-mhei@heimpold.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190912210509.19816-1-mhei@heimpold.de> References: <20190912210509.19816-1-mhei@heimpold.de> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Michael Heimpold Appending multiple times to same string is slow since strcat() needs to determine the end during each run. So manually maintain a pointer to the end to speed-up things. Signed-off-by: Michael Heimpold Cc: Michael Heimpold Reviewed-by: Avri Altman --- lsmmc.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lsmmc.c b/lsmmc.c index e64117c..86713f7 100644 --- a/lsmmc.c +++ b/lsmmc.c @@ -371,12 +371,14 @@ char *to_binstr(char *hexstr) "0000", "0001", "0010", "0011", "0100", "0101", "0110", "0111", "1000", "1001", "1010", "1011", "1100", "1101", "1110", "1111", }; - char *binstr; + char *binstr, *tail; binstr = calloc(strlen(hexstr) * 4 + 1, sizeof(char)); if (!binstr) return NULL; + tail = binstr; + while (hexstr && *hexstr != '\0') { if (!isxdigit(*hexstr)) { free(binstr); @@ -384,13 +386,14 @@ char *to_binstr(char *hexstr) } if (isdigit(*hexstr)) - strcat(binstr, bindigits[*hexstr - '0']); + strcat(tail, bindigits[*hexstr - '0']); else if (islower(*hexstr)) - strcat(binstr, bindigits[*hexstr - 'a' + 10]); + strcat(tail, bindigits[*hexstr - 'a' + 10]); else - strcat(binstr, bindigits[*hexstr - 'A' + 10]); + strcat(tail, bindigits[*hexstr - 'A' + 10]); hexstr++; + tail += 4; } return binstr; From patchwork Thu Sep 12 21:05:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heimpold X-Patchwork-Id: 11143791 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AAC5C13BD for ; Thu, 12 Sep 2019 21:12:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7F8A820830 for ; Thu, 12 Sep 2019 21:12:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=heimpold.de header.i=@heimpold.de header.b="FZBAFl0U" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728361AbfILVMP (ORCPT ); Thu, 12 Sep 2019 17:12:15 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.51]:23969 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728360AbfILVMP (ORCPT ); Thu, 12 Sep 2019 17:12:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1568322733; s=strato-dkim-0002; d=heimpold.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=tnNocpMSsRlv98k9hado3/fJfcLjPZjaARapiEs10Ow=; b=FZBAFl0ULwqFOXpA/V2cQKzNcKAEuGUoj+s7s257PXssEZ9mXH2fYRIdWc5KHp5nr5 cQCKLDTp+FzKpUyV6xbDoYWWkwxfqslBrxTNATp9UXHyDiMU7Oslf/NLFD6RoFV4t/cp RGqqM1X0zrP41HznlVZzKAScvrThU41c7ADAtapjv489QuxmHq4yPbF3a9glsEa9OiJT ODX4ah1aLhBjHcuX9whDw5gUpCiobRr+NJcNShPIW+q0X0yeCRSxjKpfcHM+XfC2oV3U gVIKqEywbWyl56zlj0P3izf2dVUgNWl+vJdJ8LCywTc9BE/yBThfCtJFwgHJPlNhpP2t 2kEQ== X-RZG-AUTH: ":O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNytq77N6ZKUSN7PfdWTGTOWHr182H3hxoqa1Ifw==" X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr by smtp.strato.de (RZmta 44.27.0 DYNA|AUTH) with ESMTPSA id 601202v8CL67d66 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Thu, 12 Sep 2019 23:06:07 +0200 (CEST) Received: from kerker.mhei.heimpold.itr (kerker.mhei.heimpold.itr [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id 4F837141348; Thu, 12 Sep 2019 23:06:06 +0200 (CEST) From: Michael Heimpold To: chris@printf.net Cc: linux-mmc@vger.kernel.org, Michael Heimpold , Michael Heimpold Subject: [PATCH mmc-utils v2 5/5] Add eMMC vendor Micron to table Date: Thu, 12 Sep 2019 23:05:09 +0200 Message-Id: <20190912210509.19816-6-mhei@heimpold.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190912210509.19816-1-mhei@heimpold.de> References: <20190912210509.19816-1-mhei@heimpold.de> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Michael Heimpold Signed-off-by: Michael Heimpold Cc: Michael Heimpold Reviewed-by: Avri Altman --- lsmmc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lsmmc.c b/lsmmc.c index 86713f7..4f687ac 100644 --- a/lsmmc.c +++ b/lsmmc.c @@ -194,6 +194,11 @@ struct ids_database database[] = { .id = 0x11, .manufacturer = "Toshiba", }, + { + .type = "mmc", + .id = 0x13, + .manufacturer = "Micron", + }, { .type = "mmc", .id = 0x15,