diff options
Diffstat (limited to 'fs/afs/super.c')
-rw-r--r-- | fs/afs/super.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/afs/super.c b/fs/afs/super.c index 77e1e5a61154..6c2fef44d385 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c | |||
@@ -302,12 +302,15 @@ static int afs_fill_super(struct super_block *sb, void *data) | |||
302 | struct inode *inode = NULL; | 302 | struct inode *inode = NULL; |
303 | int ret; | 303 | int ret; |
304 | 304 | ||
305 | lock_kernel(); | ||
306 | |||
305 | _enter(""); | 307 | _enter(""); |
306 | 308 | ||
307 | /* allocate a superblock info record */ | 309 | /* allocate a superblock info record */ |
308 | as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL); | 310 | as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL); |
309 | if (!as) { | 311 | if (!as) { |
310 | _leave(" = -ENOMEM"); | 312 | _leave(" = -ENOMEM"); |
313 | unlock_kernel(); | ||
311 | return -ENOMEM; | 314 | return -ENOMEM; |
312 | } | 315 | } |
313 | 316 | ||
@@ -341,6 +344,7 @@ static int afs_fill_super(struct super_block *sb, void *data) | |||
341 | sb->s_root = root; | 344 | sb->s_root = root; |
342 | 345 | ||
343 | _leave(" = 0"); | 346 | _leave(" = 0"); |
347 | unlock_kernel(); | ||
344 | return 0; | 348 | return 0; |
345 | 349 | ||
346 | error_inode: | 350 | error_inode: |
@@ -354,6 +358,7 @@ error: | |||
354 | sb->s_fs_info = NULL; | 358 | sb->s_fs_info = NULL; |
355 | 359 | ||
356 | _leave(" = %d", ret); | 360 | _leave(" = %d", ret); |
361 | unlock_kernel(); | ||
357 | return ret; | 362 | return ret; |
358 | } | 363 | } |
359 | 364 | ||