From: David Lin Date: Mon, 18 Apr 2016 20:11:31 +0000 (-0700) Subject: greybus: es2: Fix apb_log null pointer exception X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05a849191f964cf684777fed9ac471d59f2f18ef;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: es2: Fix apb_log null pointer exception Read on apb_log causes null pointer exception due to the missing es2 device pointer passing to the debugfs. Testing done: - Enable apb_log and cat it Signed-off-by: David Lin Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c index 239adf7a3749..9e06efb77243 100644 --- a/drivers/staging/greybus/es2.c +++ b/drivers/staging/greybus/es2.c @@ -842,7 +842,7 @@ static void usb_log_enable(struct es2_ap_dev *es2) return; /* XXX We will need to rename this per APB */ es2->apb_log_dentry = debugfs_create_file("apb_log", S_IRUGO, - gb_debugfs_get(), NULL, + gb_debugfs_get(), es2, &apb_log_fops); }