cifs: fix potential overflow in cifs_compose_mount_options
authorInsu Yun <wuninsu@gmail.com>
Mon, 1 Feb 2016 16:34:58 +0000 (11:34 -0500)
committerSteve French <smfrench@gmail.com>
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 <wuninsu@gmail.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifs_dfs_ref.c