Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1399423
| From | Kalle Valo <kvalo@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: rtlwifi: rtl818x: silence uninitialized variable warning |
| Date | 2016-05-11 21:00 +0200 |
| Message-ID | <rxHwu-5FD-11@gated-at.bofh.it> (permalink) |
| References | <ruYka-6UF-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Dan Carpenter <dan.carpenter@oracle.com> wrote: > What about if "rtlphy->pwrgroup_cnt" is 2? In that case we would use an > uninitialized "chnlgroup" variable and probably crash. Maybe that can't > happen for some reason which is not obvious but in that case this patch > is harmless. > > Setting it to zero seems like a standard default in the surrounding code > so it's probably fine here as well. > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Thanks, 1 patch applied to wireless-drivers-next.git: 2f8514b8b036 rtlwifi: rtl818x: silence uninitialized variable warning -- Sent by pwcli https://patchwork.kernel.org/patch/9010761/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[patch] rtlwifi: rtl818x: silence uninitialized variable warning Dan Carpenter <dan.carpenter@oracle.com> - 2016-05-04 08:20 +0200 Re: rtlwifi: rtl818x: silence uninitialized variable warning Kalle Valo <kvalo@codeaurora.org> - 2016-05-11 21:00 +0200
csiph-web