]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
i40e: Fix i40e_print_features() VEB mode output
authorJoe Perches <joe@perches.com>
Thu, 3 Dec 2015 12:20:57 +0000 (04:20 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 15:56:00 +0000 (08:56 -0700)
commit5cc9882b468cd7a1effcd52838792c89bcefc7cd
treea12b21da1e21b18c3b171b30e1a6227cb0b92123
parentb5ceb7a3f7a99af8e61ba9ba1a9f48912070e5c3
i40e: Fix i40e_print_features() VEB mode output

BugLink: http://bugs.launchpad.net/bugs/1536474
Commit 7fd89545f337 ("i40e: remove BUG_ON from feature string building")
added defective output when I40E_FLAG_VEB_MODE_ENABLED was set in
function i40e_print_features.

Fix it.

Miscellanea:

- Remove unnecessary string variable
- Add space before not after fixed strings
- Use kmalloc not kzalloc
- Don't initialize i to 0, use result of first snprintf

Reported-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 3b195843f59b8aefdc15c689615745bf6758756c)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/intel/i40e/i40e_main.c