mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #4652 from geky/fat-fix-unaligned-ioctl
fatfs: Fix unaligned access in disk_ioctlpull/4754/head
commit
1849370100
|
@ -219,8 +219,8 @@ DRESULT disk_ioctl(BYTE pdrv, BYTE cmd, void *buff)
|
||||||
if (_ffs[pdrv] == NULL) {
|
if (_ffs[pdrv] == NULL) {
|
||||||
return RES_NOTRDY;
|
return RES_NOTRDY;
|
||||||
} else {
|
} else {
|
||||||
DWORD size = _ffs[pdrv]->get_erase_size();
|
WORD size = _ffs[pdrv]->get_erase_size();
|
||||||
*((DWORD*)buff) = size;
|
*((WORD*)buff) = size;
|
||||||
return RES_OK;
|
return RES_OK;
|
||||||
}
|
}
|
||||||
case GET_BLOCK_SIZE:
|
case GET_BLOCK_SIZE:
|
||||||
|
|
Loading…
Reference in New Issue