diff options
Diffstat (limited to 'arch/ia64/kernel/perfmon.c')
-rw-r--r-- | arch/ia64/kernel/perfmon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index ea39eba61ef5..433f5e8a2cd1 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c | |||
@@ -2221,9 +2221,9 @@ pfm_alloc_file(pfm_context_t *ctx) | |||
2221 | d_add(path.dentry, inode); | 2221 | d_add(path.dentry, inode); |
2222 | 2222 | ||
2223 | file = alloc_file(&path, FMODE_READ, &pfm_file_ops); | 2223 | file = alloc_file(&path, FMODE_READ, &pfm_file_ops); |
2224 | if (!file) { | 2224 | if (IS_ERR(file)) { |
2225 | path_put(&path); | 2225 | path_put(&path); |
2226 | return ERR_PTR(-ENFILE); | 2226 | return file; |
2227 | } | 2227 | } |
2228 | 2228 | ||
2229 | file->f_flags = O_RDONLY; | 2229 | file->f_flags = O_RDONLY; |