[media] v4l2-ioctl.c: handle PREPARE_BUF like QUERYBUF

The core code for PREPARE_BUF didn't take the multiplanar case into
account, which might cause page faults. Handle PREPARE_BUF just like
QUERYBUF and QBUF/DQBUF.

Change-Id: Ida7f712edec32568a8c2651d54b160121009a9c4
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Srinu Gorle <sgorle@codeaurora.org>
CRs-Fixed: 637365
Merge "[media] v4l2-ioctl.c: handle PREPARE_BUF like QUERYBUF"
Merge 0d5aa07d5f4ac86ffca3d5c6982947c65a4c2875 on remote branch

Change-Id: Ic9a84910d3b01742b3a0df231364fad868d329a7
Merge "Merge 0d5aa07d5f4ac86ffca3d5c6982947c65a4c2875 on remote branch"