Commit daf36d13 authored by Eric Holmberg's avatar Eric Holmberg
Browse files

msm: smd_tty: Add check for platform device id



Verify both the platform id (SMD port edge) and
the platform name (SMD port name) match during
driver binding to prevent registering for the
correct SMD port name, but the wrong SMD port
edge.

An SMD Port can be uniquely identified in the
system by its name and edge and both of these
must match for binding to ensure that the
correct port is being opened.  Without this
check, the driver could potentially attach
to the wrong processor resulting in undefined
behavior.

Change-Id: Ic461b6f521ba4e94f41f0b2e608154cbf8eab5c3
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
parent 688afba7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment