Plug up the lock lock leakage when exporting to a short buffer.
Reported by: Alexander Leidinger Submitted by: mjg MFC after: 1 week
This commit is contained in:
parent
eee4072f13
commit
9e89077c65
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252436
@ -3272,6 +3272,8 @@ export_fd_to_sb(void *data, int type, int fd, int fflags, int refcnt,
|
||||
if (efbuf->remainder < kif->kf_structsize) {
|
||||
/* Terminate export. */
|
||||
efbuf->remainder = 0;
|
||||
if (efbuf->fdp != NULL && !locked)
|
||||
FILEDESC_SLOCK(efbuf->fdp);
|
||||
return (0);
|
||||
}
|
||||
efbuf->remainder -= kif->kf_structsize;
|
||||
|
Loading…
Reference in New Issue
Block a user