<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-07-22)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>

        PR 1627/testing
        * libfs/src/devfs/devstat.c:
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2515&r2=text&tr2=1.2516&diff_format=h">M</a></td><td width='1%'>1.2516</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libfs/src/devfs/devstat.c.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>cpukit/libfs/src/devfs/devstat.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2515 rtems/cpukit/ChangeLog:1.2516
--- rtems/cpukit/ChangeLog:1.2515       Fri Jul 16 04:24:51 2010
+++ rtems/cpukit/ChangeLog      Thu Jul 22 19:11:32 2010
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-07-22    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       PR 1627/testing
+       * libfs/src/devfs/devstat.c:
+
</font> 2010-07-16        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * libcsupport/src/link.c: Do not overwrite errno with return status.

<font color='#006600'>diff -u rtems/cpukit/libfs/src/devfs/devstat.c:1.2 rtems/cpukit/libfs/src/devfs/devstat.c:1.3
--- rtems/cpukit/libfs/src/devfs/devstat.c:1.2  Thu Jun 11 20:53:33 2009
+++ rtems/cpukit/libfs/src/devfs/devstat.c      Thu Jul 22 19:11:32 2010
</font><font color='#997700'>@@ -27,13 +27,19 @@
</font>   rtems_device_name_t *the_dev;
 
   the_dev = (rtems_device_name_t *)loc->node_access;
<font color='#880000'>-  if (!the_dev)
-    rtems_set_errno_and_return_minus_one( EFAULT );
</font> 
<font color='#880000'>-  buf->st_rdev  = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
</font><font color='#000088'>+  /*
+   *  stat() invokes devFS_evaluate_path() which checks that node_access
+   *  is not NULL.  So this should NEVER be NULL unless someone breaks
+   *  other code in this filesystem.
+   */
+  #if defined(RTEMS_DEBUG)
+    if (!the_dev)
+      rtems_set_errno_and_return_minus_one( EFAULT );
+  #endif<span style="background-color: #FF0000"> </span>
</font> 
<font color='#000088'>+  buf->st_rdev  = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
</font>   buf->st_mode = the_dev->mode;
<font color='#880000'>-
</font>   return 0;
 }
 
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>