From patchwork Thu Mar 14 22:31:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 10853759 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7A81115AC for ; Thu, 14 Mar 2019 22:32:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 675DF2A7C9 for ; Thu, 14 Mar 2019 22:32:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65AA82A7E9; Thu, 14 Mar 2019 22:32:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF8BB2A7DD for ; Thu, 14 Mar 2019 22:32:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbfCNWcD (ORCPT ); Thu, 14 Mar 2019 18:32:03 -0400 Received: from sauhun.de ([88.99.104.3]:60938 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727426AbfCNWcC (ORCPT ); Thu, 14 Mar 2019 18:32:02 -0400 Received: from localhost (p54B33449.dip0.t-ipconnect.de [84.179.52.73]) by pokefinder.org (Postfix) with ESMTPSA id 0C5472C0963; Thu, 14 Mar 2019 23:32:00 +0100 (CET) From: Wolfram Sang To: linux-mmc@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda , Masahiro Yamada , =?utf-8?q?Niklas_S=C3=B6de?= =?utf-8?q?rlund?= , Wolfram Sang Subject: [RFC PATCH 0/2] mmc: renesas_sdhi: prevent overflow for max_req_size Date: Thu, 14 Mar 2019 23:31:28 +0100 Message-Id: <20190314223130.31802-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Here is a small series fixing an 'unsigned int' overflow. I think the patch descriptions say it all. Tested on a Renesas Salvator XS board (R-Car M3N) with no regressions. Sent as RFC to give Shimoda-san some time to approve this approach. Thanks! Wolfram Wolfram Sang (2): mmc: tmio: introduce macro for max block size mmc: renesas_sdhi: prevent overflow for max_req_size drivers/mmc/host/renesas_sdhi_internal_dmac.c | 8 ++++---- drivers/mmc/host/renesas_sdhi_sys_dmac.c | 2 +- drivers/mmc/host/tmio_mmc.h | 2 ++ drivers/mmc/host/tmio_mmc_core.c | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-)