projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e853d2d
)
[Title] Fixed a kernel panic when to mount 9pfs without qemu virtfs device
author
don.hong
<don.hong@samsung.com>
Fri, 16 Mar 2012 14:46:41 +0000
(23:46 +0900)
committer
don.hong
<don.hong@samsung.com>
Fri, 16 Mar 2012 14:46:41 +0000
(23:46 +0900)
[Type] BugFix
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem] This is kernel bug
[Cause]
[Solution]
[TestCase]
Change-Id: I391633a073ee991c1dd0a85d936c63981b2e34da
net/9p/trans_virtio.c
patch
|
blob
|
history
diff --git
a/net/9p/trans_virtio.c
b/net/9p/trans_virtio.c
index ea1e3daabefeddb1dc6f46ddf5538b33cc3c0317..c7a02dfd9e41e126bae5ad8b12b83f2c70545319 100644
(file)
--- a/
net/9p/trans_virtio.c
+++ b/
net/9p/trans_virtio.c
@@
-101,6
+101,9
@@
static void p9_virtio_close(struct p9_client *client)
{
struct virtio_chan *chan = client->trans;
+ if (!chan)
+ return ;
+
mutex_lock(&virtio_9p_lock);
chan->inuse = false;
mutex_unlock(&virtio_9p_lock);