[PATCH 4.9 14/74] gpio: fix line flag validation in linehandle_create