aboutsummaryrefslogtreecommitdiffstats
path: root/samples/trace_events
diff options
context:
space:
mode:
authorSean Finney <seanius@seanius.net>2011-04-11 09:19:32 -0400
committerSteve French <sfrench@us.ibm.com>2011-05-19 10:10:54 -0400
commitb946845a9dc523c759cae2b6a0f6827486c3221a (patch)
tree15345fcb639fa2da178ade7fc704117ac0fb0ce4 /samples/trace_events
parentc1508ca23653245266e2e3ab69a8dad464f7a569 (diff)
cifs: cifs_parse_mount_options: do not tokenize mount options in-place
To keep strings passed to cifs_parse_mount_options re-usable (which is needed to clean up the DFS referral handling), tokenize a copy of the mount options instead. If values are needed from this tokenized string, they too must be duplicated (previously, some options were copied and others duplicated). Since we are not on the critical path and any cleanup is relatively easy, the extra memory usage shouldn't be a problem (and it is a bit simpler than trying to implement something smarter). Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Sean Finney <seanius@seanius.net> Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'samples/trace_events')
0 files changed, 0 insertions, 0 deletions