9f8d0dc0ec
kcm_write_msgs() calls unreserve_psock() to release its hold on the
underlying TCP socket if it has run out of things to transmit, but if we
have nothing in the write queue on entry (e.g. because someone did a
zero-length sendmsg), we don't actually go into the transmission loop and
as a consequence don't call reserve_psock().
Fix this by skipping the call to unreserve_psock() if we didn't reserve a
psock.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
kcmproc.c | ||
kcmsock.c |