cifs-utils: don't return uninitialized value in cifs_gss_get_req
authoratheik <atteh.mailbox@gmail.com>
Sat, 30 Apr 2022 21:48:26 +0000 (00:48 +0300)
committerPavel Shilovsky <piastryyy@gmail.com>
Mon, 13 Jun 2022 17:45:18 +0000 (10:45 -0700)
commit7b918730168851586416b22d2197fc6ce7be0638
tree341d556d6f6844b9190a6f12d970cce8a6137717
parentd9f5447afbbe7d54f1315e6e2a246fc1a1fce311
cifs-utils: don't return uninitialized value in cifs_gss_get_req

If the first malloc fails, maj_stat is uninitialized and used as
the return value through the GSS_ERROR() macro. Use GSS_S_FAILURE to
indicate a miscellaneous error.

Signed-off-by: atheik <atteh.mailbox@gmail.com>
cifs.upcall.c