8461 fcip: 'tok_buf_size' may be used uninitialized in this function

Review Request #618 — Created July 5, 2017 and submitted

tsoome
illumos-gate
8461
4955ac3...
general
../../common/io/fibre-channel/ulp/fcip.c: In function 'fcip_init_port':
../../common/io/fibre-channel/ulp/fcip.c:4860:3: error: 'tok_buf_size' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   kmem_free(tokens, tok_buf_size);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors


ptribble
  1. Ship It!
  2. 
      
jbk
  1. Ship It!
  2. 
      
jgmills
  1. Yes, I got the same error with gcc-4.9.4, and fixed it the same way.

  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...