Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1aab323e authored by Al Viro's avatar Al Viro
Browse files

qnx4: di_fname is an array, for crying out loud...



(struct qnx4_inode_entry *)(bh->b_data + some_offset)->di_fname
is not going to be NULL, TYVM...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 424a5334
Loading
Loading
Loading
Loading
+12 −14
Original line number Diff line number Diff line
@@ -194,7 +194,6 @@ static const char *qnx4_checkroot(struct super_block *sb)
			}
			for (i = 0; i < QNX4_INODES_PER_BLOCK; i++) {
				rootdir = (struct qnx4_inode_entry *) (bh->b_data + i * QNX4_DIR_ENTRY_SIZE);
				if (rootdir->di_fname != NULL) {
				QNX4DEBUG((KERN_INFO "rootdir entry found : [%s]\n", rootdir->di_fname));
				if (!strcmp(rootdir->di_fname,
					    QNX4_BMNAME)) {
@@ -209,7 +208,6 @@ static const char *qnx4_checkroot(struct super_block *sb)
					break;
				}
			}
			}
			brelse(bh);
			if (found != 0) {
				break;