diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2014-08-02 00:27:08 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-03 06:41:14 +0400 |
commit | b39c1e2c581fac29a63e322667cbd39a8661ca2a (patch) | |
tree | 915fcd816352c4e8275a2210f49135c09a88cf9a /drivers/net/ethernet/intel/i40evf/i40evf_main.c | |
parent | 738abbac9b8bf11a7cc3955b691cca8d7589127a (diff) | |
download | linux-b39c1e2c581fac29a63e322667cbd39a8661ca2a.tar.xz |
i40evf: fix scan warning on sprintf
The driver was converted to use snprintf everywhere but this one function.
Just use snprintf, instead of sprintf.
Also a small spelling correction in a comment.
Change-ID: I59d45f94a52754c7b4cd6034df9a61d8132b7f77
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/i40evf/i40evf_main.c')
-rw-r--r-- | drivers/net/ethernet/intel/i40evf/i40evf_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c index a53e81bb0960..937785db7dff 100644 --- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c +++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c @@ -527,7 +527,8 @@ static int i40evf_request_misc_irq(struct i40evf_adapter *adapter) struct net_device *netdev = adapter->netdev; int err; - sprintf(adapter->misc_vector_name, "i40evf:mbx"); + snprintf(adapter->misc_vector_name, + sizeof(adapter->misc_vector_name) - 1, "i40evf:mbx"); err = request_irq(adapter->msix_entries[0].vector, &i40evf_msix_aq, 0, adapter->misc_vector_name, netdev); |