diff options
author | Mark Brown <broonie@kernel.org> | 2023-11-28 15:24:50 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-11-28 15:24:50 +0300 |
commit | ef858b61945a3f5fa3a158e795abf4b7c6e6739d (patch) | |
tree | d7ecd68e0a4cf8be82baee3af09ba83a15f9927b /net/unix/af_unix.c | |
parent | 4775073b90450cb581ba60be5cb6c587985a4152 (diff) | |
parent | ed99878462ccc143395987faebda33c50529b116 (diff) | |
download | linux-ef858b61945a3f5fa3a158e795abf4b7c6e6739d.tar.xz |
ASoC: Intel: Soundwire related board and match updates
Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:
A small update for SDW machine support:
Small fixes for sof_sdw machine driver
Support for rt722
New TGL/MTL and LNL match for new configurations
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r-- | net/unix/af_unix.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 45506a95b25f..a357dc5f2404 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -2581,15 +2581,16 @@ static int unix_stream_recv_urg(struct unix_stream_read_state *state) if (!(state->flags & MSG_PEEK)) WRITE_ONCE(u->oob_skb, NULL); - + else + skb_get(oob_skb); unix_state_unlock(sk); chunk = state->recv_actor(oob_skb, 0, chunk, state); - if (!(state->flags & MSG_PEEK)) { + if (!(state->flags & MSG_PEEK)) UNIXCB(oob_skb).consumed += 1; - kfree_skb(oob_skb); - } + + consume_skb(oob_skb); mutex_unlock(&u->iolock); |