iwlwifi: fix kernel oops when ucode DMA memory allocation failure
authorZhu, Yi <yi.zhu@intel.com>
Fri, 23 Jan 2009 21:45:22 +0000 (13:45 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 20:46:43 +0000 (15:46 -0500)
commit1f304e4e3bb161163d9f5bc3c6467a2a6fa9b3ae
treefa4c17978fa8ceacc21658f3c6fce8eddbcd9198
parenteb83bbf57429ab80f49b413e3e44d3b19c3fdc5a
iwlwifi: fix kernel oops when ucode DMA memory allocation failure

The patch fixes memcpy to NULL address when the ucode DMA allocation failure.

This is a fix to bug
http://www.intellinuxwireless.org/bugzilla/show_bug.cgi?id=1861

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c