• G
    fs/cifs: fix uninitialised variable warnings · ef2298a0
    Garry McNulty 提交于
    In some error conditions, resp_buftype can be passed uninitialised to
    free_rsp_buf(), potentially resulting in a spurious debug message.
    If resp_buftype randomly had the value 1 (CIFS_SMALL_BUFFER) then this
    would log a debug message.
    The rsp pointer is initialised to NULL so there is no other side-effect.
    
    Detected by CoverityScan, CID 1438585 ("Uninitialized scalar variable")
    Detected by CoverityScan, CID 1438667 ("Uninitialized scalar variable")
    Detected by CoverityScan, CID 1438764 ("Uninitialized scalar variable")
    Signed-off-by: NGarry McNulty <garrmcnu@gmail.com>
    Signed-off-by: NSteve French <stfrench@microsoft.com>
    Reviewed-by: NAurelien Aptel <aaptel@suse.com>
    ef2298a0
smb2pdu.c 118.1 KB