gpiolib: Initialize gdev field before is used
mainline inclusion from mainline-v4.20-rc1 commit 767cd17a category: bugfix bugzilla: 14225 CVE: NA ------------------------------------------------- gpio_hog depends on gdev field being initialized. This patch fixes an OOPs during initialization of TI's AM335x-ICEv2. Fixes: 3edfb7bd ("gpiolib: Show correct direction from the beginning") Tested-by: NVignesh R <vigneshr@ti.com> Signed-off-by: NRicardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: NLinus Walleij <linus.walleij@linaro.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录