[PATCH] fs/partitions/ibm.c compile fixes

Sergey S. Kostyliov (rathamahata@php4.ru)
Thu, 31 Jan 2002 17:18:13 +0300


Hello all,

This patch against 2.4.18-pre7 fixes two obvious typos and make
fs/partitions/ibm.c to be compiled.
Also needed for both 2.5.3 and 2.5.2-dj7

--
		Best regards,
		Sergey S. Kostyliov <rathamahata@php4.ru>

diff -urN linux-2.4.18-pre7/fs/partitions/ibm.c linux/fs/partitions/ibm.c --- linux-2.4.18-pre7/fs/partitions/ibm.c Mon Oct 1 23:03:26 2001 +++ linux/fs/partitions/ibm.c Thu Jan 31 07:21:28 2002 @@ -123,7 +123,7 @@ GFP_KERNEL); if ( geo == NULL ) return 0; - if (ioctl_by_bdev(bdev, HDIO_GETGEO, (unsigned long)geo); + if (ioctl_by_bdev(bdev, HDIO_GETGEO, (unsigned long)geo)) return 0; blocksize = hardsect_size[MAJOR(dev)][MINOR(dev)]; if ( blocksize <= 0 ) { @@ -131,7 +131,7 @@ } blocksize >>= 9; - data = read_dev_sector(bdev, inode->label_block*blocksize, &sect); + data = read_dev_sector(bdev, info->label_block*blocksize, &sect); if (!data) return 0; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/