iwlwifi: fix freeing uninitialized pointer
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 16 Apr 2013 13:38:29 +0000 (15:38 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 18 Apr 2013 11:28:53 +0000 (13:28 +0200)
commit3309ccf7fcebceef540ebe90c65d2f94d745a45b
treef0dc6db1b70253ad666a923e5783ef5e3e860ac4
parent0aed849f61c1235041f98e4178d0a60aaa1dc548
iwlwifi: fix freeing uninitialized pointer

If on iwl_dump_nic_event_log() error occurs before that function
initialize buf, we process uninitiated pointer in
iwl_dbgfs_log_event_read() and can hit "BUG at mm/slub.c:3409"

Resolves:
https://bugzilla.redhat.com/show_bug.cgi?id=951241

Cc: stable@vger.kernel.org
Reported-by: ian.odette@eprize.com
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/dvm/debugfs.c