diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 16:21:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 16:21:22 -0500 |
commit | 98793265b429a3f0b3f1750e74d67cd4d740d162 (patch) | |
tree | b0bd717673f0c21845cf053f3fb6b75d42530af5 /fs/qnx4 | |
parent | b4a133da2eaccb844a7beaef16ffd9c76a0d21d3 (diff) | |
parent | bd1b2a555952d959f47169056fca05acf7eff81f (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (53 commits)
Kconfig: acpi: Fix typo in comment.
misc latin1 to utf8 conversions
devres: Fix a typo in devm_kfree comment
btrfs: free-space-cache.c: remove extra semicolon.
fat: Spelling s/obsolate/obsolete/g
SCSI, pmcraid: Fix spelling error in a pmcraid_err() call
tools/power turbostat: update fields in manpage
mac80211: drop spelling fix
types.h: fix comment spelling for 'architectures'
typo fixes: aera -> area, exntension -> extension
devices.txt: Fix typo of 'VMware'.
sis900: Fix enum typo 'sis900_rx_bufer_status'
decompress_bunzip2: remove invalid vi modeline
treewide: Fix comment and string typo 'bufer'
hyper-v: Update MAINTAINERS
treewide: Fix typos in various parts of the kernel, and fix some comments.
clockevents: drop unknown Kconfig symbol GENERIC_CLOCKEVENTS_MIGR
gpio: Kconfig: drop unknown symbol 'CS5535_GPIO'
leds: Kconfig: Fix typo 'D2NET_V2'
sound: Kconfig: drop unknown symbol ARCH_CLPS7500
...
Fix up trivial conflicts in arch/powerpc/platforms/40x/Kconfig (some new
kconfig additions, close to removed commented-out old ones)
Diffstat (limited to 'fs/qnx4')
-rw-r--r-- | fs/qnx4/inode.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c index b90c7967fcae..2bfd987f4853 100644 --- a/fs/qnx4/inode.c +++ b/fs/qnx4/inode.c | |||
@@ -199,12 +199,13 @@ static const char *qnx4_checkroot(struct super_block *sb) | |||
199 | if (!strcmp(rootdir->di_fname, | 199 | if (!strcmp(rootdir->di_fname, |
200 | QNX4_BMNAME)) { | 200 | QNX4_BMNAME)) { |
201 | found = 1; | 201 | found = 1; |
202 | qnx4_sb(sb)->BitMap = kmalloc( sizeof( struct qnx4_inode_entry ), GFP_KERNEL ); | 202 | qnx4_sb(sb)->BitMap = kmemdup(rootdir, |
203 | sizeof(struct qnx4_inode_entry), | ||
204 | GFP_KERNEL); | ||
203 | if (!qnx4_sb(sb)->BitMap) { | 205 | if (!qnx4_sb(sb)->BitMap) { |
204 | brelse (bh); | 206 | brelse (bh); |
205 | return "not enough memory for bitmap inode"; | 207 | return "not enough memory for bitmap inode"; |
206 | } | 208 | }/* keep bitmap inode known */ |
207 | memcpy( qnx4_sb(sb)->BitMap, rootdir, sizeof( struct qnx4_inode_entry ) ); /* keep bitmap inode known */ | ||
208 | break; | 209 | break; |
209 | } | 210 | } |
210 | } | 211 | } |