[PATCH 4.14 18/45] gpio: fix line flag validation in linehandle_create