Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1520010
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/2] pinctrl: single: check for any error when getting rows |
| Date | 2016-11-11 21:30 +0100 |
| Message-ID | <sCqCu-I7-5@gated-at.bofh.it> (permalink) |
| References | <sBCw2-el-13@gated-at.bofh.it> <sBCw2-el-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Nov 9, 2016 at 3:54 PM, Axel Haslam <ahaslam@baylibre.com> wrote: > pinctrl_count_index_with_args returns -ENOENT not > -EINVAL. The return check would pass, and we would > try to kzalloc with a negative error size throwing > a warning. > > Instead of checking for -EINVAL specifically, lets > check for any error and avoid negative size allocations. > > Signed-off-by: Axel Haslam <ahaslam@baylibre.com> Patch applied with Tony's ACK. Yours, Linus Walleij
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 1/2] pinctrl: single: check for any error when getting rows Axel Haslam <ahaslam@baylibre.com> - 2016-11-09 16:00 +0100 Re: [PATCH v2 1/2] pinctrl: single: check for any error when getting rows Linus Walleij <linus.walleij@linaro.org> - 2016-11-11 21:30 +0100
csiph-web