cifs: set oparms.create_options rather than or'ing in CREATE_OPEN_BACKUP_INTENT
authorColin Ian King <colin.king@canonical.com>
Wed, 5 Jul 2017 12:47:34 +0000 (13:47 +0100)
committerSteve French <smfrench@gmail.com>
Thu, 6 Jul 2017 01:01:22 +0000 (20:01 -0500)
commit709340a00ad67aea081916582846248e3b18b463
tree667e3af7b065e2dcc2b03683bd9e52d17184aa25
parent93d2cb6c82f4d50a1b35b9de379ebb1d022801ac
cifs: set oparms.create_options rather than or'ing in CREATE_OPEN_BACKUP_INTENT

Currently oparms.create_options is uninitialized and the code is logically
or'ing in CREATE_OPEN_BACKUP_INTENT onto a garbage value of
oparms.create_options from the stack.  Fix this by just setting the value
rather than or'ing in the setting.

Detected by CoverityScan, CID#1447220 ("Unitialized scale value")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/smb2ops.c