You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/06/11 09:13:42 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a diff in pull request #6410: sched/mqueue: do sanity check if DEBUG_FEATURES is enabled

pkarashchenko commented on code in PR #6410:
URL: https://github.com/apache/incubator-nuttx/pull/6410#discussion_r894999684


##########
sched/mqueue/mq_sndinternal.c:
##########
@@ -73,17 +72,28 @@
  *
  ****************************************************************************/
 
-int nxmq_verify_send(FAR struct mqueue_inode_s *msgq, int oflags,
-                     FAR const char *msg, size_t msglen, unsigned int prio)
+#ifdef CONFIG_DEBUG_FEATURES
+int nxmq_verify_send(FAR FAR struct file *mq, FAR const char *msg,
+                     size_t msglen, unsigned int prio)
 {
+  FAR struct inode *inode = mq->f_inode;
+  FAR struct mqueue_inode_s *msgq;
+
+  if (!inode)

Review Comment:
   ```suggestion
     if (inode == NULL)
   ```
   



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org