Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1357438
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] vmxnet3: fix lock imbalance in vmxnet3_tq_xmit() |
| Date | 2016-03-14 18:20 +0100 |
| Message-ID | <rcEjU-6Ns-13@gated-at.bofh.it> (permalink) |
| References | <rcC8r-54C-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Arnd Bergmann <arnd@arndb.de>
Date: Mon, 14 Mar 2016 15:53:57 +0100
> A recent bug fix rearranged the code in vmxnet3_tq_xmit() in a
> way that left the error handling for oversized headers unlock
> a lock that had not been taken yet. Gcc warns about the incorrect
> use of the 'flags' variable because of that:
>
> drivers/net/vmxnet3/vmxnet3_drv.c: In function 'vmxnet3_tq_xmit.constprop':
> include/linux/spinlock.h:246:3: error: 'flags' may be used uninitialized in this function [-Werror=maybe-uninitialized]
>
> This changes the error handling path to 'goto' the end of the function
> beyond the lock/unlock pair.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: cec05562fb1d ("vmxnet3: avoid calling pskb_may_pull with interrupts disabled")
Applied and queued up for -stable, thanks.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] vmxnet3: fix lock imbalance in vmxnet3_tq_xmit() Arnd Bergmann <arnd@arndb.de> - 2016-03-14 16:00 +0100 Re: [PATCH] vmxnet3: fix lock imbalance in vmxnet3_tq_xmit() David Miller <davem@davemloft.net> - 2016-03-14 18:20 +0100
csiph-web