]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
iwlwifi: fix potential buffer overrun in fw name
authorLiad Kaufman <liad.kaufman@intel.com>
Mon, 27 Jan 2014 14:34:23 +0000 (16:34 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 3 Feb 2014 20:23:42 +0000 (22:23 +0200)
commit84b0312eee685bd0b2ca250dcea7049c8be4b655
tree14c3544d14d08ef4033a4c3760159ca3d252853f
parent034846cfd23e00a70b48363d70dccc3f8d537053
iwlwifi: fix potential buffer overrun in fw name

Fix a potential buffer overrun when creating the fw name
in drv->firmware_name by setting a maximal length to the
char array copied to it.
The maximal length is also updated to 32 rather than 25 to
keep both 32bit and 64bit alignment without requiring
padding to the struct it is in.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-drv.c