mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
soc: ti: knav_qmss_queue: Return proper error if devm_kzalloc fails
Return -ENOMEM if devm_kzalloc fails. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Santosh Shilimkar <[email protected]>
This commit is contained in:
parent
ea6d4c07ca
commit
39179cb5b7
1 changed files with 1 additions and 1 deletions
|
|
@ -1640,7 +1640,7 @@ static int knav_queue_init_queues(struct knav_device *kdev)
|
|||
size = (1 << kdev->inst_shift) * kdev->num_queues_in_use;
|
||||
kdev->instances = devm_kzalloc(kdev->dev, size, GFP_KERNEL);
|
||||
if (!kdev->instances)
|
||||
return -1;
|
||||
return -ENOMEM;
|
||||
|
||||
for_each_queue_range(kdev, range) {
|
||||
if (range->ops && range->ops->init_range)
|
||||
|
|
|
|||
Loading…
Reference in a new issue