FreeBSD Bugzilla – Attachment 7314 Details for
Bug 15956
Off-by-1 error in diskstrategy()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 702 bytes, created by
peter.jeremy
on 2000-01-06 23:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
peter.jeremy
Created:
2000-01-06 23:00:01 UTC
Size:
702 bytes
patch
obsolete
>Index: ata-disk.c >=================================================================== >RCS file: /home/CVSROOT/src/sys/dev/ata/ata-disk.c,v >retrieving revision 1.47 >diff -u -r1.47 ata-disk.c >--- ata-disk.c 1999/12/21 20:18:55 1.47 >+++ ata-disk.c 2000/01/06 22:13:09 >@@ -301,6 +301,9 @@ > struct ad_softc *adp = bp->b_dev->si_drv1; > int32_t s; > >+ if (!bp || !bp->b_bcount) >+ return; >+ > s = splbio(); > bufqdisksort(&adp->queue, bp); > ad_start(adp); >@@ -375,7 +378,7 @@ > struct buf *bp = bufq_first(&adp->queue); > struct ad_request *request; > >- if (!bp) >+ if (!bp || !bp->b_bcount) > return; > > if (!(request = malloc(sizeof(struct ad_request), M_AD, M_NOWAIT))) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15956
:
7313
| 7314