]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
md: get_disk_info(): Don't convert between signed and unsigned and back.
authorAndre Noll <maan@systemlinux.org>
Fri, 11 Jul 2008 12:02:21 +0000 (22:02 +1000)
committerNeil Brown <neilb@suse.de>
Fri, 11 Jul 2008 12:02:21 +0000 (22:02 +1000)
commit26ef379f53993b1da3c19b63257cd47e1d9cd672
treec02f2acfb14c6b8294e101f53fb10a9d978844bb
parent80fab1d77b2852711917baa437e4fdab31c21fef
md: get_disk_info(): Don't convert between signed and unsigned and back.

The current code copies a signed int from user space, converts it to
unsigned and passes the unsigned value to find_rdev_nr() which expects
a signed value. Simply pass the signed value from user space directly.

Signed-off-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: Neil Brown <neilb@suse.de>
drivers/md/md.c