cifs: fix potential overflow in cifs_compose_mount_options
authorInsu Yun <[email protected]>
Mon, 1 Feb 2016 16:34:58 +0000 (11:34 -0500)
committerSteve French <[email protected]>
Thu, 11 Feb 2016 00:04:56 +0000 (18:04 -0600)
commitf34d69c3e54908c97708d0d65075f7c6074fc87e
treea474276b61cd22d01cfc53fa3d77f3f3153b245b
parent997152f62751b7d16f1b864121c912fd19032bdf
cifs: fix potential overflow in cifs_compose_mount_options

In worst case, "ip=" + sb_mountdata + ipv6 can be copied into mountdata.
Therefore, for safe, it is better to add more size when allocating memory.

Signed-off-by: Insu Yun <[email protected]>
Signed-off-by: Steve French <[email protected]>
fs/cifs/cifs_dfs_ref.c