Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widening 'ss' variable type in f_mkfs() #1031

Closed
wants to merge 2 commits into from
Closed

Widening 'ss' variable type in f_mkfs() #1031

wants to merge 2 commits into from

Conversation

jkearins
Copy link
Contributor

Type of variable 'ss' should be widen from WORD to DWORD in function f_mkfs() defined in ff.c. The variable is passed to disk_ioctl() by reference and get the value by assigning to (*uint32_t).
Send the reference to 'ss':
if (disk_ioctl(pdrv, GET_SECTOR_SIZE, &ss) != RES_OK) return FR_DISK_ERR;
Assign the value to 'ss' by reference:
in ff_wl_ioctl():
case GET_SECTOR_SIZE:
*((uint32_t *) buff) = wl_sector_size(wl_handle);
ff_sdmmc_ioctl():
case GET_SECTOR_SIZE:
((uint32_t) buff) = card->csd.sector_size;

Type of variable 'ss' should be widen from WORD to DWORD. The variable is passed to disk_ioctl by reference and get the value by assigning to (*uint32_t).
Send the reference to 'ss':
if (disk_ioctl(pdrv, GET_SECTOR_SIZE, &ss) != RES_OK) return FR_DISK_ERR;
Assign the value to 'ss' by reference:
in ff_wl_ioctl():
    case GET_SECTOR_SIZE:
        *((uint32_t *) buff) = wl_sector_size(wl_handle);
ff_sdmmc_ioctl():
        case GET_SECTOR_SIZE:
            *((uint32_t*) buff) = card->csd.sector_size;
Widening 'ss' variable type in ff.c
@CLAassistant
Copy link

CLAassistant commented Sep 23, 2017

CLA assistant check
All committers have signed the CLA.

@projectgus projectgus added the Status: Pending blocked by some other factor label Oct 9, 2017
@projectgus
Copy link
Contributor

Thanks @jkearins for this fix. Something went funny in the branch (there's a random merge commit in there), so I've cherry-picked just this change into a new branch and submitted it to our review & merge queue.

@igrr igrr closed this in 104204c Oct 14, 2017
@igrr igrr removed the Status: Pending blocked by some other factor label Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants