summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2023-12-12 07:06:29 +0300
committerInki Dae <inki.dae@samsung.com>2023-12-12 07:06:29 +0300
commita2f8994c1001cfa48483a3afa3550016a3ab0a3e (patch)
treecee477354e8ce7feea9c00e1f354808972939e2c /net/unix/af_unix.c
parenta60501d7c2d3e70b3545b9b96576628e369d8e85 (diff)
parent8d1b7809684c688005706125b804e1f9792d2b1b (diff)
downloadlinux-a2f8994c1001cfa48483a3afa3550016a3ab0a3e.tar.xz
Merge tag 'exynos-drm-next-for-v6.7-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into exynos-drm-next
Two fixups - Fix a potential error pointer dereference by checking the return value of exynos_drm_crtc_get_by_type() function before accessing to crtc object. - Fix a wrong error checking in exynos_drm_dma.c modules, which was reported by Dan[1] [1] https://lore.kernel.org/all/33e52277-1349-472b-a55b-ab5c3462bfcf@moroto.mountain/
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r--net/unix/af_unix.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index a357dc5f2404..ac1f2bc18fc9 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -213,8 +213,6 @@ static inline bool unix_secdata_eq(struct scm_cookie *scm, struct sk_buff *skb)
}
#endif /* CONFIG_SECURITY_NETWORK */
-#define unix_peer(sk) (unix_sk(sk)->peer)
-
static inline int unix_our_peer(struct sock *sk, struct sock *osk)
{
return unix_peer(osk) == sk;