]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
9p: use copy of the options value instead of original
authorLatchesar Ionkov <lucho@ionkov.net>
Tue, 6 Nov 2007 14:02:53 +0000 (08:02 -0600)
committerEric Van Hensbergen <ericvh@gmail.com>
Tue, 6 Nov 2007 14:02:53 +0000 (08:02 -0600)
commit8999e04f3b7930f0c6f091a541237de51d8dd372
tree5e47b7b4024928e4e7f35ff584cfdd99d75a29a0
parentdda6b022f3222f09d3fb49f5dfabd31d33e0d10b
9p: use copy of the options value instead of original

v9fs_parse_options function uses strsep which modifies the value of the
v9ses->options field. That modified value is later passed to the function
that creates the transport potentially making the transport creation
function to fail.

This patch creates a copy of v9ses->option field that v9fs_parse_options
function uses instead of the original value.

Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Acked-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/v9fs.c