Fix UNC parsing on mount
authorSachin Prabhu <sprabhu@redhat.com>
Wed, 4 Apr 2012 00:58:56 +0000 (01:58 +0100)
committerSteve French <sfrench@us.ibm.com>
Wed, 4 Apr 2012 01:46:09 +0000 (20:46 -0500)
commite4b41fb9dafb9af4fecb602bf73d858ab651eeed
tree60f08a6ffab5686bfe4256fa8d4f838a09e2698f
parent1023807458b6365e28c66095648e1b66e04a4259
Fix UNC parsing on mount

The code cleanup of cifs_parse_mount_options resulted in a new bug being
introduced in the parsing of the UNC. This results in vol->UNC being
modified before vol->UNC was allocated.

Reported-by: Steve French <smfrench@gmail.com>
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c