Re: [PATCH 2/3] ipu3-cio2: Serialise access to pad format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 9, 2020 at 12:44 AM Sakari Ailus
<sakari.ailus@xxxxxxxxxxxxxxx> wrote:
>
> Pad format can be accessed from user space. Serialise access to it.

...

>         /* Initialize miscellaneous variables */
>         mutex_init(&q->lock);
> +       mutex_init(&q->subdev_lock);

...

>         mutex_destroy(&q->lock);
> +       mutex_destroy(&q->subdev_lock);

A nit: perhaps reversed order?

>         mutex_destroy(&q->lock);
> +       mutex_destroy(&q->subdev_lock);

Ditto.

-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux