[RTEMS Project] #4285: gr_leon4_n2x.c: Unchecked return value error from library error spotted by Coverity
RTEMS trac
trac at rtems.org
Tue Mar 2 15:16:14 UTC 2021
#4285: gr_leon4_n2x.c: Unchecked return value error from library error spotted by
Coverity
------------------------+--------------------
Reporter: Ryan Long | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: bsps | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
------------------------+--------------------
CID 1399767: Unchecked return value error from library in
gr_cpci_leon4_n2x_init1().
{{{
495 strcpy(priv->prefix, "/dev/leon4n2x0");
496 priv->prefix[13] += dev->minor_drv;
CID 1399767 (#1 of 1): Unchecked return value from library
(CHECKED_RETURN)2. check_return: Calling mkdir(priv->prefix, 511U) without
checking return value. This library function may fail and return an error
code. [Note: The source code implementation of the function has been
overridden by a builtin model.]
497 mkdir(priv->prefix, S_IRWXU | S_IRWXG | S_IRWXO);
498 priv->prefix[14] = '/';
499 priv->prefix[15] = '\0';
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4285>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list