Skip to content

Commit d303528

Browse files
LiaoYuanhong-vivoJassi Brar
authored andcommitted
mailbox: arm_mhuv3: Remove no_free_ptr() to maintain the original form of the pointer
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>
1 parent 07e27ad commit d303528

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mailbox/arm_mhuv3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ static irqreturn_t mhuv3_mbx_comb_interrupt(int irq, void *arg)
945945
if (IS_ERR(data)) {
946946
dev_err(dev,
947947
"Failed to read in-band data. err:%ld\n",
948-
PTR_ERR(no_free_ptr(data)));
948+
PTR_ERR(data));
949949
goto rx_ack;
950950
}
951951
}

0 commit comments

Comments
 (0)