iwlwifi: fix kernel oops when ucode DMA memory allocation failure
authorZhu, Yi <[email protected]>
Fri, 23 Jan 2009 21:45:22 +0000 (13:45 -0800)
committerJohn W. Linville <[email protected]>
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 <[email protected]>
Signed-off-by: Reinette Chatre <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/iwlwifi/iwl-agn.c