UPSTREAM: drm/msm/dsi: correct DSI id bounds check during registration

Check DSI instance id argument against the proper boundary size
to protect against invalid configuration of the DSI id.

Signed-off-by: Lloyd Atkinson <>
Signed-off-by: Rob Clark <>
(cherry picked from commit 6e1787cf45e48866c01dadc2a1b6c3d63d75b8d1)
Signed-off-by: Sean Paul <>

TEST=Booted on cheza
Change-Id: I366c0038004b25787f314facab5f336024a58a57
Commit-Ready: Kristian H. Kristensen <>
Tested-by: Sean Paul <>
Reviewed-by: St├ęphane Marchesin <>
Reviewed-by: Kristian H. Kristensen <>
1 file changed