diff options
Diffstat (limited to 'net/9p/protocol.c')
| -rw-r--r-- | net/9p/protocol.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/9p/protocol.c b/net/9p/protocol.c index b58a501cf3d1..a873277cb996 100644 --- a/net/9p/protocol.c +++ b/net/9p/protocol.c | |||
| @@ -674,6 +674,7 @@ int p9dirent_read(char *buf, int len, struct p9_dirent *dirent, | |||
| 674 | } | 674 | } |
| 675 | 675 | ||
| 676 | strcpy(dirent->d_name, nameptr); | 676 | strcpy(dirent->d_name, nameptr); |
| 677 | kfree(nameptr); | ||
| 677 | 678 | ||
| 678 | out: | 679 | out: |
| 679 | return fake_pdu.offset; | 680 | return fake_pdu.offset; |
