[PATCH 5.2 24/85] gpio: fix line flag validation in linehandle_create