ALSA: firewire-lib: fix error codes for allocation failure
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 5 Jun 2021 12:46:39 +0000 (15:46 +0300)
committerTakashi Iwai <tiwai@suse.de>
Sun, 6 Jun 2021 08:04:54 +0000 (10:04 +0200)
commit8b6e219317480aa8457d9bd91dc2f4d8524bdba1
tree1599eac6d04fdd520c3dc0ecd4a9b59cdde82b4a
parent745f260b77e5e9de4f756d4a7cda510c616bb279
ALSA: firewire-lib: fix error codes for allocation failure

Return -ENOMEM if kcalloc() fails.  Currently the code returns success.

Fixes: f9e5ecdfc2c2 ("ALSA: firewire-lib: add replay target to cache sequence of packet")
Fixes: 6f24bb8a157c ("ALSA: firewire-lib: pool sequence of packet in IT context independently")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/YLtyL4VoArwVLor1@mwanda
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream.c