[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/46282 CVS commit: [netbsd-6] src/sys/fs/msdosfs
The following reply was made to PR kern/46282; it has been noted by GNATS.
From: "Jeff Rizzo" <riz%netbsd.org@localhost>
Subject: PR/46282 CVS commit: [netbsd-6] src/sys/fs/msdosfs
Date: Mon, 16 Apr 2012 15:37:13 +0000
Module Name: src
Committed By: riz
Date: Mon Apr 16 15:37:12 UTC 2012
src/sys/fs/msdosfs [netbsd-6]: msdosfs_fat.c
Pull up following revision(s) (requested by hannken in ticket #183):
sys/fs/msdosfs/msdosfs_fat.c: revision 1.20
pcbmap(): We cannot use bread() here as for the pagedaemon getblk()
may fail leading to a panic in bread().
Replace bread() with getblk() / VOP_STRATEGY() and return
an error if getblk() fails.
Fixes PR#46282: 6.0_BETA crash: msdosfs_bmap -> pcbmap -> bread ->
This is an interim solution for easy pullup. The final solution
is be to change bread() to not return a buffer on error. As
we have to change all callers of bread() this will not qualify
for a pullup.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r126.96.36.199 src/sys/fs/msdosfs/msdosfs_fat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Main Index |
Thread Index |