]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iwlwifi: fix freeing uninitialized pointer
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 16 Apr 2013 13:38:29 +0000 (15:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:08:17 +0000 (20:08 -0700)
commit3b878e81dd0be24d6b0851266920c03519ad728b
tree5f30cc08c80d1b76d085f66ebcd5cfd6091502c4
parent0787640bbe69c1920ce70aecbb14b8a84cc42570
iwlwifi: fix freeing uninitialized pointer

commit 3309ccf7fcebceef540ebe90c65d2f94d745a45b upstream.

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

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/dvm/debugfs.c