freebsd-src/sys/dev/cxgb
Ian Lepore 1eafc07856 Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl
strings returned to userland include the nulterm byte.

Some uses of sbuf_new_for_sysctl() write binary data rather than strings;
clear the SBUF_INCLUDENUL flag after calling sbuf_new_for_sysctl() in
those cases.  (Note that the sbuf code still automatically adds a nulterm
byte in sbuf_finish(), but since it's not included in the length it won't
get copied to userland along with the binary data.)

Remove explicit adding of a nulterm byte in a couple places now that it
gets done automatically by the sbuf drain code.

PR:		195668
2015-03-14 17:08:28 +00:00
..
common cxgb: replace r273280 with a more comprehensive fix. 2015-01-11 07:51:58 +00:00
sys Provide a set of inline functions to manage simple mbuf(9) queues, based 2015-02-19 01:19:42 +00:00
ulp Provide a set of inline functions to manage simple mbuf(9) queues, based 2015-02-19 01:19:42 +00:00
bin2h.pl
cxgb_adapter.h Provide a set of inline functions to manage simple mbuf(9) queues, based 2015-02-19 01:19:42 +00:00
cxgb_include.h Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
cxgb_ioctl.h
cxgb_main.c cxgb: replace r273280 with a more comprehensive fix. 2015-01-11 07:51:58 +00:00
cxgb_offload.h
cxgb_osdep.h Remove kdb_backtrace extern; get the definition for kdb_backtrace from 2015-02-07 21:29:17 +00:00
cxgb_sge.c Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl 2015-03-14 17:08:28 +00:00
cxgb_t3fw.c Revert previous commit... 2012-10-10 08:36:38 +00:00
cxgb_t3fw.h
t3b_protocol_sram.h
t3b_tp_eeprom.h
t3c_protocol_sram.h
t3c_tp_eeprom.h