pse: fix slab-out-of-bounds read of size 1

KASAN reported a slab-out-of-bound read of size 1 when userspace wrote
the port priority to /sys/class/pse/port_priority.  This patch fixes the
out-of-bound read as well makes the interface a little more robust
against invalid input.

Change-Id: I17a35ba1abb4c1e5b8222e6502534554580c0e58
1 file changed
tree: cfefa669da5d81b8edf0794801af3d6270656275
  1. client_data_usage/
  2. cpmodem_shim/
  3. pse/
  4. qcom-adc/
  5. .gitignore