From: Anton Altaparmakov <aia21@cus.cam.ac.uk>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] And another small ntfs fix
Date: Wed, 25 Jul 2001 00:09:49 +0100 (BST) [thread overview]
Message-ID: <E15PBJF-0001WR-00@virgo.cus.cam.ac.uk> (raw)
Linus,
Please apply below patch. It is incremental to patch before previous one.
Fixes a truly silly bug reported by the Stanford Checker, where we
dereference an inode pointer and then check for it not being NULL
afterwards...
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Linux NTFS maintainer / WWW: http://linux-ntfs.sf.net/
ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/
------ cut here -------
--- linux-2.4.7-pre8-vanilla/fs/ntfs/dir.c.old Wed Jul 25 00:03:57 2001
+++ linux-2.4.7-pre8-vanilla/fs/ntfs/dir.c Wed Jul 25 00:04:40 2001
@@ -789,7 +789,7 @@
int block;
int start;
ntfs_attribute *attr;
- ntfs_volume *vol = ino->vol;
+ ntfs_volume *vol;
int byte, bit;
int error = 0;
@@ -797,6 +797,7 @@
ntfs_error("No inode passed to getdir_unsorted\n");
return -EINVAL;
}
+ vol = ino->vol;
if (!vol) {
ntfs_error("Inode %d has no volume\n", ino->i_number);
return -EINVAL;
reply other threads:[~2001-07-24 23:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E15PBJF-0001WR-00@virgo.cus.cam.ac.uk \
--to=aia21@cus.cam.ac.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®