[PATCH 4.19 17/50] gpio: fix line flag validation in linehandle_create