Skip to content

Commit e22e983

Browse files
committed
Merge tag '9p-for-5.13-rc1' of git://github.com/martinetd/linux
Pull 9p updates from Dominique Martinet: "An error handling fix and constification" * tag '9p-for-5.13-rc1' of git://github.com/martinetd/linux: fs: 9p: fix v9fs_file_open writeback fid error check 9p: Constify static struct v9fs_attr_group
2 parents a48b087 + f8b139e commit e22e983

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fs/9p/v9fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ static struct attribute *v9fs_attrs[] = {
583583
NULL,
584584
};
585585

586-
static struct attribute_group v9fs_attr_group = {
586+
static const struct attribute_group v9fs_attr_group = {
587587
.attrs = v9fs_attrs,
588588
};
589589

fs/9p/vfs_file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ int v9fs_file_open(struct inode *inode, struct file *file)
8686
* to work.
8787
*/
8888
writeback_fid = v9fs_writeback_fid(file_dentry(file));
89-
if (IS_ERR(fid)) {
90-
err = PTR_ERR(fid);
89+
if (IS_ERR(writeback_fid)) {
90+
err = PTR_ERR(writeback_fid);
9191
mutex_unlock(&v9inode->v_mutex);
9292
goto out_error;
9393
}

0 commit comments

Comments
 (0)