diff options
| author | Baruch Siach <baruch@tkos.co.il> | 2020-12-02 09:15:32 +0200 |
|---|---|---|
| committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-12-02 12:01:51 +0100 |
| commit | 7ee1a01e47403f72b9f38839a737692f6991263e (patch) | |
| tree | 2cedbcff2691079269182135c7850b7e45e25c57 /scripts/patch-kernel | |
| parent | 7f57b295f990c0fa07f96d51ca1c82c52dbf79cc (diff) | |
gpio: mvebu: fix potential user-after-free on probe
When mvebu_pwm_probe() fails IRQ domain is not released. Move pwm probe
before IRQ domain allocation. Add pwm cleanup code to the failure path.
Fixes: 757642f9a584 ("gpio: mvebu: Add limited PWM support")
Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
