From 1cfce723f4e638c94149c2b29ae104586f3b9ef9 Mon Sep 17 00:00:00 2001 From: Runmin Wang Date: Tue, 16 Aug 2016 11:00:34 -0700 Subject: [PATCH] soc: qcom: irq-helper: Change the sysfs print function Update the size of snprintf function to be PAGE_SIZE, in order to display the sysfs entry correctly. CRs-Fixed: 1054946 Change-Id: I75050cb8730f42bc601530b7505e32ec95cf88c0 Signed-off-by: Runmin Wang --- drivers/soc/qcom/irq-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/irq-helper.c b/drivers/soc/qcom/irq-helper.c index 2bb71464d165..7bb371f7991e 100644 --- a/drivers/soc/qcom/irq-helper.c +++ b/drivers/soc/qcom/irq-helper.c @@ -72,7 +72,7 @@ static ssize_t show_deploy(struct kobject *kobj, struct attribute *attr, { struct irq_helper *irq = to_irq_helper(kobj); - return snprintf(buf, sizeof(irq->deploy), "%u\n", irq->deploy); + return snprintf(buf, PAGE_SIZE, "%u\n", irq->deploy); } IRQ_HELPER_ATTR(irq_blacklist_on, 0444, show_deploy, NULL);