Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9219
b: refs/heads/master
c: a8e63bf
h: refs/heads/master
i:
  9217: 8a6f008
  9215: a1ace4a
v: v3
  • Loading branch information
Latchesar Ionkov authored and Linus Torvalds committed Sep 23, 2005
1 parent 509c8e6 commit 4aec745
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b067676234715051cbde87083c36c8ea83f77b8
refs/heads/master: a8e63bff521f0387fb4f4e486dede0e78dca8f41
8 changes: 7 additions & 1 deletion trunk/fs/9p/v9fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,13 @@ v9fs_session_init(struct v9fs_session_info *v9ses,
goto SessCleanUp;
};

v9ses->transport = trans_proto;
v9ses->transport = kmalloc(sizeof(*v9ses->transport), GFP_KERNEL);
if (!v9ses->transport) {
retval = -ENOMEM;
goto SessCleanUp;
}

memmove(v9ses->transport, trans_proto, sizeof(*v9ses->transport));

if ((retval = v9ses->transport->init(v9ses, dev_name, data)) < 0) {
eprintk(KERN_ERR, "problem initializing transport\n");
Expand Down

0 comments on commit 4aec745

Please sign in to comment.