git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
drivers
/
ide
/
legacy
/
hd.c
diff --git
a/drivers/ide/legacy/hd.c
b/drivers/ide/legacy/hd.c
index
05ea9a7
..
5d35808
100644
(file)
--- a/
drivers/ide/legacy/hd.c
+++ b/
drivers/ide/legacy/hd.c
@@
-660,7
+660,7
@@
static int hd_ioctl(struct inode * inode, struct file * file,
unsigned int cmd, unsigned long arg)
{
struct hd_i_struct *disk = inode->i_bdev->bd_disk->private_data;
unsigned int cmd, unsigned long arg)
{
struct hd_i_struct *disk = inode->i_bdev->bd_disk->private_data;
- struct hd_geometry
*loc = (struct hd_geometry
*) arg;
+ struct hd_geometry
__user *loc = (struct hd_geometry __user
*) arg;
struct hd_geometry g;
if (cmd != HDIO_GETGEO)
struct hd_geometry g;
if (cmd != HDIO_GETGEO)