include a comment in the tm_wday = -1 codesample, since we are
trying to encourage this to become an idiomatic use pattern.
Everyone doing this, please copy the comment also.
ok tb
Avoid netlock dance in cad(4) ioctl.
While interface ioctl(8) is moving towards better parallel access,
drivers assuming exclusive netlock and unlocking explicitly cause
trouble. Use the drivers own configuration lock for protection.
Do not wait for task barriers while potentially holding the netlock.
Panic reported by Mark McBride and Thomas Pries.
Tested by dlg@; OK dlg@ mvs@
Replace all printf with DPRINTF so that kernel messages are only printed
if the FUSE_DEBUG option is set at compile time. Each debug message on
the console is prefexed with "fusefs: "
Remove the useless fuse_dump_buff() function while we are at it.
ok mlarkin
setup the radeondrm wscons burner task, lost in 6.18 drm changes
avoids a NULL deref when wscons screen burner is enabled
reported by al and Philippe on bugs@
Calculate the msg_copyin() `xfer' as min(available space, ...) not
min(total space, ...). Otherwise we read outside of userland buffer.
Also, I like to use sizeof(variable) instead of sizeof(type).
ok cludwig
Allocate a buffer for the line cache instead of reaching into db data.
Previously, vi used the db internal data buffer directly. Fixes a
problem where the line cache could become corrupted when the db
data changes out from under it. From Walter Alejandro Iglesias.
bin/ksh: restore source after interactive error recovery
unwind() may clear source while popping execution environments. The
interactive shell then expands PS1 before compile() restores source, so
a prompt command substitution using read -s can dereference NULL while
saving history. Restore source to the current interactive input source
before continuing to the prompt loop.
Reported by Luigi Vianello
OK: millert@