Bug 9286

Summary: 2.6.24-rc1 eat my photo SD card :-(
Product: Drivers Reporter: Rafael J. Wysocki (rjwysocki)
Component: MMC/SDAssignee: Pierre Ossman (pierre-bugzilla)
Status: CLOSED CODE_FIX    
Severity: normal CC: pierre-bugzilla
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.24-rc1 Subsystem:
Regression: Yes Bisected commit-id:
Bug Depends on:    
Bug Blocks: 9243    
Attachments: Proposed patch to fix sg helper mistake

Description Rafael J. Wysocki 2007-11-02 09:15:45 UTC
Subject         : 2.6.24-rc1 eat my photo SD card :-(
Submitter       : Romano Giannetti <romanol@upcomillas.es>
References      : http://lkml.org/lkml/2007/11/1/99
Handled-By      : Nick Piggin <nickpiggin@yahoo.com.au>
Comment 1 Rafael J. Wysocki 2007-11-07 16:33:37 UTC
Handled-By      : Pierre Ossman <drzeus-mmc@drzeus.cx>
                : Willy Tarreau <w@1wt.eu>
Comment 2 Roland Dreier 2007-11-07 16:42:40 UTC
Created attachment 13450 [details]
Proposed patch to fix sg helper mistake

Please try the attached patch, which fixes a mistake in the sg helper conversion of drivers/mmc/card/queue.c.  I will test when I have an SD card handy...
Comment 3 Jens Axboe 2007-11-07 23:42:17 UTC
Good work Roland, that would definitely explain data corruption. The patch is queued up here, going upstream later today.
Comment 4 Romano Giannetti 2007-11-08 01:12:32 UTC
Tested. It works for me. (I am the original reporter).
Comment 5 Pierre Ossman 2007-11-10 02:34:52 UTC
Patch applied upstream by Jens, so closing bug.
Comment 6 Rafael J. Wysocki 2007-11-16 14:39:37 UTC
Fixed by:

commit 8578007065bd27ec077a74b5814f0fe4df040180
Author: Roland Dreier <roland@digitalvampire.org>
Date:   Thu Nov 8 13:50:58 2007 +0100

    mmc: Fix sg helper copy-and-paste error

http://git.kernel.org/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8578007065bd27ec077a74b5814f0fe4df040180