]> git.karo-electronics.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:33:04 +0000 (20:33 -0700)
commit34e3e78befc3c6f65f3e7ce70f0367745cd550b0
tree13e1b151fc62d04869655269855c0d851a1fee79
parent1a36af179e195ab85e1444cc760fd7a620289fa6
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