From: Nicolas Melot Date: Sun, 1 Aug 2021 17:20:58 +0000 (+0200) Subject: Forward value of sector_size instead of its address in blkdev_get_physector_size X-Git-Tag: v2.38-rc1~328 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5456d16767d196bc6ab31e1cf613198e97d2669;p=thirdparty%2Futil-linux.git Forward value of sector_size instead of its address in blkdev_get_physector_size --- diff --git a/lib/blkdev.c b/lib/blkdev.c index 9de8512917..cc1eea3a62 100644 --- a/lib/blkdev.c +++ b/lib/blkdev.c @@ -226,8 +226,10 @@ int blkdev_get_sector_size(int fd __attribute__((__unused__)), int *sector_size) #ifdef BLKPBSZGET int blkdev_get_physector_size(int fd, int *sector_size) { - if (ioctl(fd, BLKPBSZGET, §or_size) >= 0) + if (ioctl(fd, BLKPBSZGET, sector_size) >= 0) + { return 0; + } return -1; } #else