diff options
author | Jaroslav Kysela <perex@perex.cz> | 2024-12-17 11:07:26 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-12-20 09:52:15 +0100 |
commit | 3d3f43fab4cfb9cf245e3dbffa1736ce925bb54a (patch) | |
tree | 2f8a7f472e66952bade24e03028b05968615ffa4 /net/unix/af_unix.c | |
parent | f25a51b47c61540585a9e8a4e16f91677ebcbbc4 (diff) | |
download | linux-3d3f43fab4cfb9cf245e3dbffa1736ce925bb54a.tar.gz linux-3d3f43fab4cfb9cf245e3dbffa1736ce925bb54a.tar.bz2 linux-3d3f43fab4cfb9cf245e3dbffa1736ce925bb54a.zip |
ALSA: compress_offload: improve file descriptors installation for dma-buf
Avoid to use single dma_buf_fd() call for both directions. This code
ensures that both file descriptors are allocated before fd_install().
Link: https://lore.kernel.org/linux-sound/6a923647-4495-4cff-a253-b73f48cfd0ea@stanley.mountain/
Fixes: 04177158cf98 ("ALSA: compress_offload: introduce accel operation mode")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20241217100726.732863-1-perex@perex.cz
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions