[bug report] crypto: chtls - Inline TLS record Tx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Atul Gupta,

This is a semi-automatic email about new static checker warnings.

The patch 36bedb3f2e5b: "crypto: chtls - Inline TLS record Tx" from 
Mar 31, 2018, leads to the following Smatch complaint:

    drivers/crypto/chelsio/chtls/chtls_io.c:1156 chtls_sendpage()
    warn: variable dereferenced before check 'skb' (see line 1155)

drivers/crypto/chelsio/chtls/chtls_io.c
  1154	
  1155			copy = mss - skb->len;
                                     ^^^^^^^^
Dereference

  1156			if (!skb || (ULP_SKB_CB(skb)->flags & ULPCB_FLAG_NO_APPEND) ||
                            ^^^^
Check

  1157			    copy <= 0) {
  1158	new_buf:

regards,
dan carpenter



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux