staging: mei: fix possible usage of uninitialized variable
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 15 Jun 2011 21:46:03 +0000 (00:46 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2011 20:21:33 +0000 (13:21 -0700)
commit479bc59d88e1126f3206923738d990ebe1b41137
tree9fcfd5ee1b342b53cfedfb43840086edeb03a8b7
parent0288c7c9754d45531944992e8731d1ee9c59ecc3
staging: mei: fix possible usage of uninitialized variable

Fix warning: reported in http://marc.info/?l=linux-kernel&m=130812960402606&w=2

drivers/staging/mei/interrupt.c: warning: 'buffer' may be used uninitialized in this function:  => 198

It is a real issue and wrong path in execution is taken when
list is empty or (cl && _mei_irq_thread_state_ok(cl, mei_hdr))
evaluates to false

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/mei/interrupt.c