Skip to content
Commit 26ef379f authored by Andre Noll's avatar Andre Noll Committed by Neil Brown
Browse files

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: default avatarAndre Noll <maan@systemlinux.org>
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
parent 80fab1d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment