mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
xfs: fix wrong compat fields in xfs_ioctl32_bstat_copyin()
bs_blocks and bs_xflags were both read from bstat32->bs_size.
Read each one from its own field instead.
Fixes: e94fc4a43e ("[XFS] Add compat handlers for swapext ioctl")
Cc: stable@vger.kernel.org # v2.6.29
Signed-off-by: Reid Downing <skibletz@gmail.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
2bbca049de
commit
b7eb276a39
|
|
@ -143,8 +143,8 @@ xfs_ioctl32_bstat_copyin(
|
|||
xfs_ioctl32_bstime_copyin(&bstat->bs_atime, &bstat32->bs_atime) ||
|
||||
xfs_ioctl32_bstime_copyin(&bstat->bs_mtime, &bstat32->bs_mtime) ||
|
||||
xfs_ioctl32_bstime_copyin(&bstat->bs_ctime, &bstat32->bs_ctime) ||
|
||||
get_user(bstat->bs_blocks, &bstat32->bs_size) ||
|
||||
get_user(bstat->bs_xflags, &bstat32->bs_size) ||
|
||||
get_user(bstat->bs_blocks, &bstat32->bs_blocks) ||
|
||||
get_user(bstat->bs_xflags, &bstat32->bs_xflags) ||
|
||||
get_user(bstat->bs_extsize, &bstat32->bs_extsize) ||
|
||||
get_user(bstat->bs_extents, &bstat32->bs_extents) ||
|
||||
get_user(bstat->bs_gen, &bstat32->bs_gen) ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user