Home
last modified time | relevance | path

Searched hist:"17706 f5653a90ff277b5b36c2eb60ff872df5e7a" (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/media/usb/uvc/
H A Duvc_status.cdiff 17706f5653a90ff277b5b36c2eb60ff872df5e7a Thu Apr 25 20:28:51 CDT 2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> [media] uvcvideo: Fix open/close race condition

Maintaining the users count using an atomic variable makes sure that
access to the counter won't be racy, but doesn't serialize access to the
operations protected by the counter. This creates a race condition that
could result in the status URB being submitted multiple times.
Use a mutex to protect the users count and serialize access to the
status start and stop operations.

Reported-by: Shawn Nematbakhsh <shawnn@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
H A Duvc_v4l2.cdiff 17706f5653a90ff277b5b36c2eb60ff872df5e7a Thu Apr 25 20:28:51 CDT 2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> [media] uvcvideo: Fix open/close race condition

Maintaining the users count using an atomic variable makes sure that
access to the counter won't be racy, but doesn't serialize access to the
operations protected by the counter. This creates a race condition that
could result in the status URB being submitted multiple times.
Use a mutex to protect the users count and serialize access to the
status start and stop operations.

Reported-by: Shawn Nematbakhsh <shawnn@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
H A Duvcvideo.hdiff 17706f5653a90ff277b5b36c2eb60ff872df5e7a Thu Apr 25 20:28:51 CDT 2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> [media] uvcvideo: Fix open/close race condition

Maintaining the users count using an atomic variable makes sure that
access to the counter won't be racy, but doesn't serialize access to the
operations protected by the counter. This creates a race condition that
could result in the status URB being submitted multiple times.
Use a mutex to protect the users count and serialize access to the
status start and stop operations.

Reported-by: Shawn Nematbakhsh <shawnn@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
H A Duvc_driver.cdiff 17706f5653a90ff277b5b36c2eb60ff872df5e7a Thu Apr 25 20:28:51 CDT 2013 Laurent Pinchart <laurent.pinchart@ideasonboard.com> [media] uvcvideo: Fix open/close race condition

Maintaining the users count using an atomic variable makes sure that
access to the counter won't be racy, but doesn't serialize access to the
operations protected by the counter. This creates a race condition that
could result in the status URB being submitted multiple times.
Use a mutex to protect the users count and serialize access to the
status start and stop operations.

Reported-by: Shawn Nematbakhsh <shawnn@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>