mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-02 08:50:39 -05:00
[SCSI] sg: fix oops in the error path in sg_build_indirect()
When the allocation fails in sg_build_indirect(), an oops happens in the error path. It's caused by an obvious typo. Signed-off-by: Michal Schmidt <[email protected]> Reported-by: Bob Tracy <[email protected]> Acked-by: Douglas Gilbert <[email protected]> Cc: Stable Tree <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
b437b95620
commit
e71044ee2e
1 changed files with 1 additions and 1 deletions
|
|
@ -1811,7 +1811,7 @@ retry:
|
|||
return 0;
|
||||
out:
|
||||
for (i = 0; i < k; i++)
|
||||
__free_pages(schp->pages[k], order);
|
||||
__free_pages(schp->pages[i], order);
|
||||
|
||||
if (--order >= 0)
|
||||
goto retry;
|
||||
|
|
|
|||
Loading…
Reference in a new issue