FreeBSD Bugzilla – Attachment 215037 Details for
Bug 246852
bounce_bus_dmamap_load_buffer() does not clean up state on error EFBIG.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
bounce_bus_dmamap_load_buffer fix.
bug_patch.txt (text/plain), 735 bytes, created by
Thomas Skibo
on 2020-05-29 23:51:34 UTC
(
hide
)
Description:
bounce_bus_dmamap_load_buffer fix.
Filename:
MIME Type:
Creator:
Thomas Skibo
Created:
2020-05-29 23:51:34 UTC
Size:
735 bytes
patch
obsolete
>Index: sys/arm64/arm64/busdma_bounce.c >=================================================================== >--- sys/arm64/arm64/busdma_bounce.c (revision 361546) >+++ sys/arm64/arm64/busdma_bounce.c (working copy) >@@ -771,7 +771,11 @@ > /* > * Did we fit? > */ >- return (buflen != 0 ? EFBIG : 0); /* XXX better return value here? */ >+ if (buflen != 0) { >+ bus_dmamap_unload(dmat, map); >+ return (EFBIG); /* XXX better return value here? */ >+ } >+ return (0); > } > > /* >@@ -873,7 +877,11 @@ > /* > * Did we fit? > */ >- return (buflen != 0 ? EFBIG : 0); /* XXX better return value here? */ >+ if (buflen != 0) { >+ bus_dmamap_unload(dmat, map); >+ return (EFBIG); /* XXX better return value here? */ >+ } >+ return (0); > } > > static void
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 Raw
Actions:
View
Attachments on
bug 246852
: 215037