mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
dma40: handle failure to allocate first LCLA
Acked-by: Per Forlin <per.forlin@stericsson.com> Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
e65889c75c
commit
6045f0bb28
1 changed files with 5 additions and 0 deletions
|
@ -538,6 +538,10 @@ static void d40_log_lli_to_lcxa(struct d40_chan *chan, struct d40_desc *desc)
|
|||
curr_lcla);
|
||||
|
||||
lli_current++;
|
||||
|
||||
if (curr_lcla < 0)
|
||||
goto out;
|
||||
|
||||
for (; lli_current < lli_len; lli_current++) {
|
||||
unsigned int lcla_offset = chan->phy_chan->num * 1024 +
|
||||
8 * curr_lcla * 2;
|
||||
|
@ -567,6 +571,7 @@ static void d40_log_lli_to_lcxa(struct d40_chan *chan, struct d40_desc *desc)
|
|||
}
|
||||
}
|
||||
|
||||
out:
|
||||
desc->lli_current = lli_current;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue