K 10 svn:author V 7 git2svn K 8 svn:date V 27 2021-04-16T19:42:36.203700Z K 7 svn:log V 600 Make sbuf_drain safe for external use While sbuf_drain was an internal function, two KASSERTS checked the sanity of it being called. However, an external caller may be ignorant if there is any data to drain, or if an error has already accumulated. Be nice and return immediately with the accumulated error. MFC after: 2 weeks Reviewed By: tuexen, #transport Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D29544 (cherry picked from commit cad4fd0365a5e3235e715e072e6ee9dffaa7a3ab) Git Hash: 2e96d6ef392e2280a8cb39d89932596c3524ddda Git Author: rscheff@FreeBSD.org END