[PATCH] drm/i915: Fix race condition in accessing GMBUS

Eugeni Dodonov eugeni at dodonov.net
Fri Feb 10 09:00:48 PST 2012


On Thu, Feb 9, 2012 at 20:14, Yufeng Shen <miletus at chromium.org> wrote:

> GMBUS has several ports and each has it's own corresponding
> I2C adpater. When multiple I2C adapters call gmbus_xfer() at
> the same time there is a race condition in using the underlying
> GMBUS controller. Fixing this by adding a mutex lock when calling
> gmbus_xfer().
>
> Signed-off-by: Yufeng Shen <miletus at chromium.org>
>

Looks correct to me. Thanks!

Reviewed-by: Eugeni Dodonov <eugeni.dodonov at intel.com>

-- 
Eugeni Dodonov
<http://eugeni.dodonov.net/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20120210/4837c90a/attachment.htm>


More information about the dri-devel mailing list