terry0012 opened a new pull request, #22059:
URL: https://github.com/apache/nuttx/pull/22059

   ## Summary
   
   FBIOPAN_DISPLAY previously called the lower-half pandisplay callback
   before adding the request to the pan queue. The callback could therefore
   run before the new pan information was queued, or even when enqueueing
   would subsequently fail.
   
   Enqueue the pan information first and invoke pandisplay only when
   enqueueing succeeds. This makes the request available before lower-half
   processing and avoids invoking the callback when the queue cannot
   accept it.
   
   ## Impact
   
   - Changes are limited to FBIOPAN_DISPLAY handling in drivers/video/fb.c.
   - No public API or Kconfig changes.
   - Existing lower-half error return values are preserved.
   - The request is now queued before the callback; this patch does not
     add queue rollback if the callback returns an error.
   
   ## Testing
   
   - Passed checkpatch.sh -f drivers/video/fb.c.
   - Passed git diff --check.
   - Passed the commit-message format check.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to