FreeBSD Bugzilla – Attachment 242627 Details for
Bug 271766
dumpfs fails on geli devices: cylinder group checks failed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
address the panic
cursor.diff (text/plain), 765 bytes, created by
Mark Johnston
on 2023-06-05 22:17:19 UTC
(
hide
)
Description:
address the panic
Filename:
MIME Type:
Creator:
Mark Johnston
Created:
2023-06-05 22:17:19 UTC
Size:
765 bytes
patch
obsolete
>diff --git a/sys/opencrypto/criov.c b/sys/opencrypto/criov.c >index 5312fe622c5e..8db7be949d3f 100644 >--- a/sys/opencrypto/criov.c >+++ b/sys/opencrypto/criov.c >@@ -404,16 +404,16 @@ crypto_cursor_advance(struct crypto_buffer_cursor *cc, size_t amount) > void * > crypto_cursor_segment(struct crypto_buffer_cursor *cc, size_t *len) > { >+ if (cc->cc_buf_len == 0) { >+ *len = 0; >+ return (NULL); >+ } > switch (cc->cc_type) { > case CRYPTO_BUF_CONTIG: > *len = cc->cc_buf_len; > return (cc->cc_buf); > case CRYPTO_BUF_MBUF: > case CRYPTO_BUF_SINGLE_MBUF: >- if (cc->cc_mbuf == NULL) { >- *len = 0; >- return (NULL); >- } > if (cc->cc_mbuf->m_flags & M_EXTPG) > return (m_epg_segment(cc->cc_mbuf, cc->cc_offset, len)); > *len = cc->cc_mbuf->m_len - cc->cc_offset;
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 271766
:
242577
| 242627 |
242665