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: I1982eda1b74f81cb54c60b872c10a350381e9c32
1 file changed
tree: 279bbf7c3ca3840453e779a7fce64469eeda32cb
  1. client_data_usage/
  2. cpmodem_shim/
  3. pse/
  4. qcom-adc/
  5. .gitignore