aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMarek Szyprowski <[email protected]>2016-06-17 09:54:23 +0200
committerInki Dae <[email protected]>2016-07-13 23:06:04 +0900
commitf7c72773de88fa3d4b51d4eb2bd2a89b746aaf54 (patch)
tree05a40dbdf33237547e0d2703027533a65fc12ca7 /net/unix/sysctl_net_unix.c
parent5dd0775e502b26b44e5bcb5f504a977a565f2f3e (diff)
drm/exynos: iommu: move dma_params configuration code to separate functions
Move code for managing DMA max segment size parameter to separate functions. This patch also replaces devm_kzalloc() with kzalloc() and adds proper kfree call. devm_kzalloc() cannot be used for dma_params structure, because it will be freed on driver remove not on device release. This means in case of Exynos DRM being compiled as module and loaded 2 times, a user-after-free issue will happen. Signed-off-by: Marek Szyprowski <[email protected]> Signed-off-by: Inki Dae <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions