https://github.com/torvalds/linux
Revision 81a42d298d8bd1b96be4bd459494f25fdd99b594 authored by Jeff Mahoney on 25 August 2006, 22:58:57 UTC, committed by David S. Miller on 27 August 2006, 00:55:55 UTC
The current sun disklabel code uses a signed int for the sector count.
When partitions larger than 1 TB are used, the cast to a sector_t causes
the partition sizes to be invalid:

 # cat /proc/paritions | grep sdan
   66   112 2146435072 sdan
   66   115 9223372036853660736 sdan3
   66   120 9223372036853660736 sdan8

This patch switches the sector count to an unsigned int to fix this.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5fec811
History
Tip revision: 81a42d298d8bd1b96be4bd459494f25fdd99b594 authored by Jeff Mahoney on 25 August 2006, 22:58:57 UTC
[DISKLABEL] SUN: Fix signed int usage for sector count
Tip revision: 81a42d2
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 521 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 71.0 KB
Makefile -rw-r--r-- 46.5 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top