mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-17 06:48:07 +00:00
7df8fc578b
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 5a399c9c3325b2a72d3bf522b7e1b0fa48954d96 Mon Sep 17 00:00:00 2001
|
|
From: Dan Carpenter <dan.carpenter@oracle.com>
|
|
Date: Sat, 3 Mar 2012 12:09:17 +0100
|
|
Subject: [PATCH 30/42] block, sx8: fix pointer math issue getting fw version
|
|
|
|
commit ea5f4db8ece896c2ab9eafa0924148a2596c52e4 upstream.
|
|
|
|
"mem" is type u8. We need parenthesis here or it screws up the pointer
|
|
math probably leading to an oops.
|
|
|
|
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
|
|
Acked-by: Jeff Garzik <jgarzik@redhat.com>
|
|
Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
|
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
---
|
|
drivers/block/sx8.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c
|
|
index b70f0fc..eec7b7a 100644
|
|
--- a/drivers/block/sx8.c
|
|
+++ b/drivers/block/sx8.c
|
|
@@ -1116,7 +1116,7 @@ static inline void carm_handle_resp(struct carm_host *host,
|
|
break;
|
|
case MISC_GET_FW_VER: {
|
|
struct carm_fw_ver *ver = (struct carm_fw_ver *)
|
|
- mem + sizeof(struct carm_msg_get_fw_ver);
|
|
+ (mem + sizeof(struct carm_msg_get_fw_ver));
|
|
if (!error) {
|
|
host->fw_ver = le32_to_cpu(ver->version);
|
|
host->flags |= (ver->features & FL_FW_VER_MASK);
|
|
--
|
|
1.7.9.4
|
|
|