[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20130521165209.GB4566@zurbaran>
Date: Tue, 21 May 2013 18:52:09 +0200
From: Samuel Ortiz <sameo@...ux.intel.com>
To: "Greg KH (gregkh@...uxfoundation.org)" <gregkh@...uxfoundation.org>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
"Winkler, Tomas" <tomas.winkler@...el.com>
Subject: [PATCH] [char-misc-linus] mei: bus: Reset event_cb when disabling a
device
After cancelling all reads from the disable hook, we need to reset the
event_cb pointer as well or else we won't be able to set a new one up
when re-enabling the device.
Acked-by: Tomas Winkler <tomas.winkler@...el.com>
Signed-off-by: Samuel Ortiz <sameo@...ux.intel.com>
---
drivers/misc/mei/bus.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c
index 1e935ea..9ecd49a 100644
--- a/drivers/misc/mei/bus.c
+++ b/drivers/misc/mei/bus.c
@@ -496,6 +496,8 @@ int mei_cl_disable_device(struct mei_cl_device *device)
}
}
+ device->event_cb = NULL;
+
mutex_unlock(&dev->device_lock);
if (!device->ops || !device->ops->disable)
--
1.7.10.4
--
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists