lkml.org 
[lkml]   [2001]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.5.1-pre8 oopses on non existing acorn partition
On Tue, Dec 11 2001, Bas Vermeulen wrote:
> 2.5.1-pre8 oopses in adfspart_check_ICS (probably the put_dev_sector,
> not entirely sure, since there doesn't seem to be anything wrong).
> I've enabled advanced partitions, and all the partition types.
> Disabling advanced partitions fixes it.

Please try attached patch.

--
Jens Axboe

--- /opt/kernel/linux-2.5.1-pre9/fs/partitions/acorn.c Mon Oct 1 23:03:26 2001
+++ fs/partitions/acorn.c Tue Dec 11 06:21:54 2001
@@ -162,12 +162,12 @@
struct adfs_discrecord *dr;
unsigned int nr_sects;

- if (!(minor & mask))
- break;
-
data = read_dev_sector(bdev, start_blk * 2 + 6, &sect);
if (!data)
return -1;
+
+ if (!(minor & mask))
+ break;

dr = adfs_partition(hd, name, data, first_sector, minor++);
if (!dr)
\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.047 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site