]> www.infradead.org Git - users/hch/misc.git/commitdiff
mailbox: arm_mhuv3: Remove no_free_ptr() to maintain the original form of the pointer
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Mon, 11 Aug 2025 08:25:36 +0000 (16:25 +0800)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 6 Oct 2025 23:13:38 +0000 (18:13 -0500)
Remove no_free_ptr() to ensure PTR_ERR() consistently retrieves the correct
error code.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Acked-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/arm_mhuv3.c

index b97e79a5870fbadeae77be5efd38ee9c9ef5a051..0910da67f8a1732bcaceb1147a81efaa9918f263 100644 (file)
@@ -945,7 +945,7 @@ static irqreturn_t mhuv3_mbx_comb_interrupt(int irq, void *arg)
                        if (IS_ERR(data)) {
                                dev_err(dev,
                                        "Failed to read in-band data. err:%ld\n",
-                                       PTR_ERR(no_free_ptr(data)));
+                                       PTR_ERR(data));
                                goto rx_ack;
                        }
                }