lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <1543465191-2100-1-git-send-email-huijin.park@samsung.com>
Date:   Wed, 28 Nov 2018 23:19:51 -0500
From:   Huijin Park <huijin.park@...sung.com>
To:     Boris Brezillon <boris.brezillon@...tlin.com>
Cc:     Marek Vasut <marek.vasut@...il.com>, linux-mtd@...ts.infradead.org,
        linux-kernel@...r.kernel.org,
        Huijin Park <huijin.park@...sung.com>, bbanghj.park@...il.com,
        Miquel Raynal <miquel.raynal@...tlin.com>
Subject: [PATCH v3] mtd: change len type from signed to unsigned type

From: "huijin.park" <huijin.park@...sung.com>

Callers of erase_write() always pass an unsigned int.
So this patch avoids a cast to an int.

Signed-off-by: huijin.park <huijin.park@...sung.com>
Reviewed-by: Miquel Raynal <miquel.raynal@...tlin.com>

---

Changes since v1:
 * Made commit message more clear.
Changes since v2:
 * Made commit message more clear.
---
 drivers/mtd/mtdblock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c
index a5b1933..b2d5ed1 100644
--- a/drivers/mtd/mtdblock.c
+++ b/drivers/mtd/mtdblock.c
@@ -56,7 +56,7 @@ struct mtdblk_dev {
  */
 
 static int erase_write (struct mtd_info *mtd, unsigned long pos,
-			int len, const char *buf)
+			unsigned int len, const char *buf)
 {
 	struct erase_info erase;
 	size_t retlen;
-- 
1.7.9.5

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ