[libcamera-devel,v2,1/2] pipeline: ipu3: Fix mis-aligned comment
diff mbox series

Message ID 20210526131025.675024-2-umang.jain@ideasonboard.com
State Accepted
Headers show
Series
  • ipa: ipu3: Provide frame timestamps through IPU3Event
Related show

Commit Message

Umang Jain May 26, 2021, 1:10 p.m. UTC
Fixes: 2fac95b400b7 ("libcamera: pipeline: ipu3: Ensure that IPU3Frames::info is not used after delete")
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
---
 src/libcamera/pipeline/ipu3/ipu3.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Laurent Pinchart May 26, 2021, 1:40 p.m. UTC | #1
Hi Umang,

Thank you for the patch.

On Wed, May 26, 2021 at 06:40:24PM +0530, Umang Jain wrote:
> Fixes: 2fac95b400b7 ("libcamera: pipeline: ipu3: Ensure that IPU3Frames::info is not used after delete")
> Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  src/libcamera/pipeline/ipu3/ipu3.cpp | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
> index 25203256..750880ed 100644
> --- a/src/libcamera/pipeline/ipu3/ipu3.cpp
> +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
> @@ -1361,9 +1361,9 @@ void IPU3CameraData::statBufferReady(FrameBuffer *buffer)
>  		info->metadataProcessed = true;
>  
>  		/*
> -		* tryComplete() will delete info if it completes the IPU3Frame.
> -		* In that event, we must have obtained the Request before hand.
> -		*/
> +		 * tryComplete() will delete info if it completes the IPU3Frame.
> +		 * In that event, we must have obtained the Request before hand.
> +		 */
>  		Request *request = info->request;
>  
>  		if (frameInfos_.tryComplete(info))
Hirokazu Honda May 26, 2021, 1:48 p.m. UTC | #2
Hi Umang, thank you for reviewing.

On Wed, May 26, 2021 at 10:40 PM Laurent Pinchart <
laurent.pinchart@ideasonboard.com> wrote:

> Hi Umang,
>
> Thank you for the patch.
>
> On Wed, May 26, 2021 at 06:40:24PM +0530, Umang Jain wrote:
> > Fixes: 2fac95b400b7 ("libcamera: pipeline: ipu3: Ensure that
> IPU3Frames::info is not used after delete")
> > Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>


> > ---
> >  src/libcamera/pipeline/ipu3/ipu3.cpp | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp
> b/src/libcamera/pipeline/ipu3/ipu3.cpp
> > index 25203256..750880ed 100644
> > --- a/src/libcamera/pipeline/ipu3/ipu3.cpp
> > +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
> > @@ -1361,9 +1361,9 @@ void IPU3CameraData::statBufferReady(FrameBuffer
> *buffer)
> >               info->metadataProcessed = true;
> >
> >               /*
> > -             * tryComplete() will delete info if it completes the
> IPU3Frame.
> > -             * In that event, we must have obtained the Request before
> hand.
> > -             */
> > +              * tryComplete() will delete info if it completes the
> IPU3Frame.
> > +              * In that event, we must have obtained the Request before
> hand.
> > +              */
> >               Request *request = info->request;
> >
> >               if (frameInfos_.tryComplete(info))
>
> --
> Regards,
>
> Laurent Pinchart
>

Patch
diff mbox series

diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index 25203256..750880ed 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -1361,9 +1361,9 @@  void IPU3CameraData::statBufferReady(FrameBuffer *buffer)
 		info->metadataProcessed = true;
 
 		/*
-		* tryComplete() will delete info if it completes the IPU3Frame.
-		* In that event, we must have obtained the Request before hand.
-		*/
+		 * tryComplete() will delete info if it completes the IPU3Frame.
+		 * In that event, we must have obtained the Request before hand.
+		 */
 		Request *request = info->request;
 
 		if (frameInfos_.tryComplete(info))