Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1436945

[PATCH] memory: samsung: exynos-srom: fix wrong count of registers

From Seung-Woo Kim <sw0312.kim@samsung.com>
Newsgroups linux.kernel
Subject [PATCH] memory: samsung: exynos-srom: fix wrong count of registers
Date 2016-07-05 13:50 +0200
Message-ID <rRx1w-2fg-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


This patch fixes wrong count of array for srom registers from probe
function.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
---
 drivers/memory/samsung/exynos-srom.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/memory/samsung/exynos-srom.c b/drivers/memory/samsung/exynos-srom.c
index 96756fb..c66d2bd 100644
--- a/drivers/memory/samsung/exynos-srom.c
+++ b/drivers/memory/samsung/exynos-srom.c
@@ -134,7 +134,7 @@ static int exynos_srom_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, srom);
 
 	srom->reg_offset = exynos_srom_alloc_reg_dump(exynos_srom_offsets,
-			sizeof(exynos_srom_offsets));
+			ARRAY_SIZE(exynos_srom_offsets));
 	if (!srom->reg_offset) {
 		iounmap(srom->reg_base);
 		return -ENOMEM;
-- 
1.7.9.5

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] memory: samsung: exynos-srom: fix wrong count of registers Seung-Woo Kim <sw0312.kim@samsung.com> - 2016-07-05 13:50 +0200
  Re: [PATCH] memory: samsung: exynos-srom: fix wrong count of registers Chanwoo Choi <cw00.choi@samsung.com> - 2016-07-06 02:20 +0200
  Re: [PATCH] memory: samsung: exynos-srom: fix wrong count of registers Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-07-06 08:20 +0200

csiph-web