aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <[email protected]>2022-08-17 14:49:24 +0200
committerTakashi Iwai <[email protected]>2022-08-17 15:13:30 +0200
commit9be080edcca330be4af06b19916c35227891e8bc (patch)
tree9c8bedf219f8731067fd00ff458d396d35ad56b1 /net/lapb/lapb_out.c
parent1ff954f9ab054675b9eb02dd14add8f7aa376d71 (diff)
ALSA: info: Fix llseek return value when using callback
When using callback there was a flow of ret = -EINVAL if (callback) { offset = callback(); goto out; } ... offset = some other value in case of no callback; ret = offset; out: return ret; which causes the snd_info_entry_llseek() to return -EINVAL when there is callback handler. Fix this by setting "ret" directly to callback return value before jumping to "out". Fixes: 73029e0ff18d ("ALSA: info - Implement common llseek for binary mode") Signed-off-by: Amadeusz Sławiński <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions