diff options
author | Bruce Allan | 2012-12-05 07:26:46 +0100 |
---|---|---|
committer | Jeff Kirsher | 2013-01-16 09:38:58 +0100 |
commit | 3a3104e7d022ec24862448d167a21de46accf6e8 (patch) | |
tree | bc0b47fe5cd738958453f3b74072279a4dc67d70 /drivers/net/ethernet/intel/e1000e | |
parent | e1000e: cleanup unnecessary line wrap (diff) | |
download | kernel-qcow2-linux-3a3104e7d022ec24862448d167a21de46accf6e8.tar.gz kernel-qcow2-linux-3a3104e7d022ec24862448d167a21de46accf6e8.tar.xz kernel-qcow2-linux-3a3104e7d022ec24862448d167a21de46accf6e8.zip |
e1000e: cleanup magic number
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e')
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/nvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/nvm.c b/drivers/net/ethernet/intel/e1000e/nvm.c index 71938ed2d3c3..1e7882c7d6d4 100644 --- a/drivers/net/ethernet/intel/e1000e/nvm.c +++ b/drivers/net/ethernet/intel/e1000e/nvm.c @@ -464,8 +464,8 @@ s32 e1000_read_pba_string_generic(struct e1000_hw *hw, u8 *pba_num, if (nvm_data != NVM_PBA_PTR_GUARD) { e_dbg("NVM PBA number is not stored as string\n"); - /* we will need 11 characters to store the PBA */ - if (pba_num_size < 11) { + /* make sure callers buffer is big enough to store the PBA */ + if (pba_num_size < E1000_PBANUM_LENGTH) { e_dbg("PBA string buffer too small\n"); return E1000_ERR_NO_SPACE; } |