X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Ffile_table.c;h=b74a8e1da913c95033bc494e39c6c9f0ff87316d;hb=a83398570e17af6bb81eb94f4f5dd356bd2828d8;hp=da806aceae3f7c350c449821defb7647234c2840;hpb=bc2fd381d8f9dbeb181f82286cdca1567e3d0def;p=pandora-kernel.git diff --git a/fs/file_table.c b/fs/file_table.c index da806aceae3f..b74a8e1da913 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -128,6 +128,7 @@ struct file *get_empty_filp(void) atomic_long_set(&f->f_count, 1); rwlock_init(&f->f_owner.lock); f->f_cred = get_cred(cred); + spin_lock_init(&f->f_lock); eventpoll_init_file(f); /* f->f_version: 0 */ return f;