Skip to contentSkip to conversation

drivers-memstick-core-ms_blockc-fix-unreachable-state-in-h_msb_read_page.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 15, 2013 Sony memorystick

lore
Share & tools
lore
#0 lore raw

Subject: [merged] drivers-memstick-core-ms_blockc-fix-unreachable-state-in-h_msb_read_page.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 14 Nov 2013 16:57:13 -0800

The patch titled
Subject: drivers/memstick/core/ms_block.c: fix unreachable state in h_msb_read_page()
has been removed from the -mm tree. Its filename was
drivers-memstick-core-ms_blockc-fix-unreachable-state-in-h_msb_read_page.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Roger Tseng <[email protected]>
Subject: drivers/memstick/core/ms_block.c: fix unreachable state in h_msb_read_page()

In h_msb_read_page() in ms_block.c, flow never reaches case MSB_RP_RECIVE_STATUS_REG. This causes error when MEMSTICK_INT_ERR is encountered and status error bits are going to be examined, but the status will never be copied back.

Fix it by transitioning to MSB_RP_RECIVE_STATUS_REG right after MSB_RP_SEND_READ_STATUS_REG.

---

 drivers/memstick/core/ms_block.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/memstick/core/ms_block.c renamed from drivers/memstick/core/ms_block.c~drivers-memstick-core-ms_blockc-fix-unreachable-state-in-h_msb_read_page +1 -1
diff -puN drivers/memstick/core/ms_block.c~drivers-memstick-core-ms_blockc-fix-unreachable-state-in-h_msb_read_page drivers/memstick/core/ms_block.c
@@ -401,7 +401,7 @@ again:
 			sizeof(struct ms_status_register)))
 			return 0;
 
-		msb->state = MSB_RP_RECEIVE_OOB_READ;
+		msb->state = MSB_RP_RECIVE_STATUS_REG;
 		return 0;
 
 	case MSB_RP_RECIVE_STATUS_REG:

_

Patches currently in -mm which might be from [email protected] are

origin.patch