Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux...
[linux-drm-fsl-dcu.git] / fs / namei.c
index a7b05bf82d31ad2e8eacbac999a049cab1f8d446..3ddb044f370273079674c189461fb21dca2c597f 100644 (file)
@@ -3074,7 +3074,7 @@ opened:
        error = open_check_o_direct(file);
        if (error)
                goto exit_fput;
-       error = ima_file_check(file, op->acc_mode);
+       error = ima_file_check(file, op->acc_mode, *opened);
        if (error)
                goto exit_fput;