diskio: check early for an impossible LBA value for CHS requests
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 16 Jul 2010 23:25:53 +0000 (16:25 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 16 Jul 2010 23:25:53 +0000 (16:25 -0700)
commit055f763ca8c0eb69724cf5c1e5cb9511dce724f9
tree0adebfec7e1eb0499df93f36e4793bd8d2539aef
parent21af78ff343844210a2241daa1b040c9d3c72178
diskio: check early for an impossible LBA value for CHS requests

Make sure we don't end up trying to do a CHS request for a truly
absurd value, that could possibly be misconverted.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/fs/diskio.c