diff options
| author | Nicolas George <[email protected]> | 2007-09-18 22:46:21 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-09-19 11:24:17 -0700 |
| commit | 2c392a4f47f41b24432e6aa77bb5167d0bbb10c5 (patch) | |
| tree | 2b926ad86b52039789814f1d4174364bdd91d60f /net/lapb/lapb_timer.c | |
| parent | 3558c9b3232b5f0fd9f32043a191eca20fca64c6 (diff) | |
uml: use correct type in BLKGETSIZE ioctl
I found a type mismatch in UML that makes host block devices unusable as ubd
devices on x86_64 and other 64 bits systems (segfault of the mm subsystem):
In block/ioctl.c, the following lines show that the BLKGETSIZE ioctl expects
a pointer to a long:
case BLKGETSIZE:
if ((bdev->bd_inode->i_size >> 9) > ~0UL)
return -EFBIG;
return put_ulong(arg, bdev->bd_inode->i_size >> 9);
In arch/um/os-Linux/file.c, os_file_size calls it with an int.
The ioctl_list man page should be fixed as well.
Cc: Jeff Dike <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions