[RTEMS Project] #4290: gr_cpi_gr740.c: Unchecked return value from library error spotted by Coverity
RTEMS trac
trac at rtems.org
Tue Mar 2 15:41:07 UTC 2021
#4290: gr_cpi_gr740.c: Unchecked return value 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 1437630: Unchecked return value from library in gr_cpci_gr740_inti1().
{{{
472 strcpy(priv->prefix, "/dev/gr740_0");
473 priv->prefix[11] += dev->minor_drv;
CID 1437630 (#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.]
474 mkdir(priv->prefix, S_IRWXU | S_IRWXG | S_IRWXO);
475 priv->prefix[12] = '/';
476 priv->prefix[13] = '\0';
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4290>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list