forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge git://git.kernel.org/pub/scm/linux/kernel/git/aia21/ntfs
Here are some trivial NTFS changes (a spelling fix and two use before NULL check cases found by Coverity as well as an update in MAINTAINERS for the path to the ntfs git repo) together with a simple LDM fix for parsing fragmented VBLKs. * git://git.kernel.org/pub/scm/linux/kernel/git/aia21/ntfs: NTFS: Update git repo path in MAINTAINERS file. LDM: Fix reassembly of extended VBLKs. NTFS: Correct two spelling errors "dealocate" to "deallocate" in mft.c. NTFS: Do not dereference pointer before checking for NULL. NTFS: Remove unused variable.
- Loading branch information
Showing
5 changed files
with
12 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4685,7 +4685,7 @@ NTFS FILESYSTEM | |
M: Anton Altaparmakov <[email protected]> | ||
L: [email protected] | ||
W: http://www.tuxera.com/ | ||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/aia21/ntfs-2.6.git | ||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/aia21/ntfs.git | ||
S: Supported | ||
F: Documentation/filesystems/ntfs.txt | ||
F: fs/ntfs/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* ldm - Support for Windows Logical Disk Manager (Dynamic Disks) | ||
* | ||
* Copyright (C) 2001,2002 Richard Russon <[email protected]> | ||
* Copyright (c) 2001-2007 Anton Altaparmakov | ||
* Copyright (c) 2001-2012 Anton Altaparmakov | ||
* Copyright (C) 2001,2002 Jakob Kemi <[email protected]> | ||
* | ||
* Documentation is available at http://www.linux-ntfs.org/doku.php?id=downloads | ||
|
@@ -1341,20 +1341,17 @@ static bool ldm_frag_add (const u8 *data, int size, struct list_head *frags) | |
ldm_error("REC value (%d) exceeds NUM value (%d)", rec, f->num); | ||
return false; | ||
} | ||
|
||
if (f->map & (1 << rec)) { | ||
ldm_error ("Duplicate VBLK, part %d.", rec); | ||
f->map &= 0x7F; /* Mark the group as broken */ | ||
return false; | ||
} | ||
|
||
f->map |= (1 << rec); | ||
|
||
if (!rec) | ||
memcpy(f->data, data, VBLK_SIZE_HEAD); | ||
data += VBLK_SIZE_HEAD; | ||
size -= VBLK_SIZE_HEAD; | ||
|
||
memcpy (f->data+rec*(size-VBLK_SIZE_HEAD)+VBLK_SIZE_HEAD, data, size); | ||
|
||
memcpy(f->data + VBLK_SIZE_HEAD + rec * size, data, size); | ||
return true; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters