[FIX] Use proper structure in FILE_PROBE_INITIALIZER 03/44503/4
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Wed, 22 Jul 2015 15:28:33 +0000 (18:28 +0300)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Thu, 23 Jul 2015 09:10:54 +0000 (02:10 -0700)
Wrong structure used during initialization leads to allocation
of less memory than will actually be used.
Change file_private by flock_private.

Change-Id: I2d9951ff11066c13f838c8d7c04b176bbed6d7b5
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
ks_features/file_ops.c

index 0c4b82f..e0fd724 100644 (file)
@@ -150,7 +150,7 @@ static struct file_probe fprobes[] = {
 
 #define X(_name, _args) \
        [id_##_name] = __FILE_PROBE_INITIALIZER(_name, _args, FOPS_OTHER, \
-                                               struct file_private, \
+                                               struct flock_private, \
                                                lock_entry_handler, \
                                                lock_ret_handler)
        FILE_OPS_LOCK_LIST