lkml.org 
[lkml]   [1998]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectBug fix for /fs/proc/fd.c
# this patch fixes a check that should be before dereferencing a ptr
# From George Mirchev (gmirchev@usa.net)

--- fd.old Thu Nov 13 06:36:41 1997
+++ fd.c Sat Aug 22 16:05:27 1998
@@ -61,11 +61,11 @@
int i;

*result = NULL;
+ if (!dir)
+ return -ENOENT;
ino = dir->i_ino;
pid = ino >> 16;
ino &= 0x0000ffff;
- if (!dir)
- return -ENOENT;
sb = dir->i_sb;
if (!pid || ino != PROC_PID_FD || !S_ISDIR(dir->i_mode)) {
iput(dir);
### End here

Oh, btw I'm not on the list, so if want to get to me (for example telling me that I'm all wrong) than CC.



____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.030 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site