|
@@ -281,7 +281,7 @@ static int mmc_ext_csd_open(struct inode *inode, struct file *filp)
|
|
if (err)
|
|
if (err)
|
|
goto out_free;
|
|
goto out_free;
|
|
|
|
|
|
- for (i = 511; i >= 0; i--)
|
|
|
|
|
|
+ for (i = 0; i < 512; i++)
|
|
n += sprintf(buf + n, "%02x", ext_csd[i]);
|
|
n += sprintf(buf + n, "%02x", ext_csd[i]);
|
|
n += sprintf(buf + n, "\n");
|
|
n += sprintf(buf + n, "\n");
|
|
BUG_ON(n != EXT_CSD_STR_LEN);
|
|
BUG_ON(n != EXT_CSD_STR_LEN);
|