sock_diag: Fix out-of-bounds access to sock_diag_handlers[]

Userland can send a netlink message requesting SOCK_DIAG_BY_FAMILY
with a family greater or equal then AF_MAX -- the array size of
sock_diag_handlers[]. The current code does not test for this
condition therefore is vulnerable to an out-of-bound access opening
doors for a privilege escalation.

CRs-fixed: 519050
Change-Id: I1466c4f56f3f4df90cf8a1ae17afa80c89b813e8
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-commit: 6e601a53566d84e1ffd25e7b6fe0b6894ffd79c0
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sarang Joshi <spjoshi@codeaurora.org>
ASoC: msm: qdsp6: fix contention between silence and normal port start

- Fix contention between silence and normal port start
  when short silence and playback both starts concurrently
  in usecases like suspend-resume.

CRs-Fixed: 543132
Change-Id: I4c406dc83b4624f59179071ff67e9702769eff15
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
Merge "ASoC: msm: qdsp6: fix contention between silence and normal port start"
Merge "sock_diag: Fix out-of-bounds access to sock_diag_handlers[]"