]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: visorbus: visorchipset.c: Fix bug in parser_init_byte_stream.
authorSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Wed, 30 Aug 2017 17:36:09 +0000 (13:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:17:38 +0000 (18:17 +0200)
commit2a757d82e95d49c578497f0be7f0d9406f54c553
treeb63c17ba48fb1d0ceb092169ff79ec30ce77094b
parentf4a2e8792c973aa6e8e9af623d6587219c72891e
staging: unisys: visorbus: visorchipset.c: Fix bug in parser_init_byte_stream.

This patch fixes a bug in the function parser_init_byte_stream()
by removing the call to parser_done from goto err_finish_ctx.
The function parser_done() decrements
chipset_dev->controlvm_payload_bytes_buffered which is not
incremented before this gets called.

Signed-off-by: Sameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchipset.c