Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

soc: qcom: smem: drop the WARN_ON() on SMEM item validation

When a SMEM item is allocated or retrieved, sanity check on the SMEM item
is performed and backtrace is printed if it is invalid. But there is no
benefit in dumping that information in the logs. Lets drop it.

Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251031-image-crm-part2-v2-1-c224c45c381a@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Kathiravan Thirumoorthy and committed by
Bjorn Andersson
d4032769 85d55d8c

+2 -2
+2 -2
drivers/soc/qcom/smem.c
··· 521 521 return -EINVAL; 522 522 } 523 523 524 - if (WARN_ON(item >= __smem->item_count)) 524 + if (item >= __smem->item_count) 525 525 return -EINVAL; 526 526 527 527 ret = hwspin_lock_timeout_irqsave(__smem->hwlock, ··· 694 694 if (IS_ERR(__smem)) 695 695 return __smem; 696 696 697 - if (WARN_ON(item >= __smem->item_count)) 697 + if (item >= __smem->item_count) 698 698 return ERR_PTR(-EINVAL); 699 699 700 700 if (host < SMEM_HOST_COUNT && __smem->partitions[host].virt_base) {