path: root/net/phonet/socket.c
diff options
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2010-09-15 12:19:53 +0000
committerDavid S. Miller <davem@davemloft.net>2010-09-15 21:31:31 -0700
commit6482f554e2b9cbe733d63124765104f29cf0c9ad (patch)
tree464efc6726b6c183f820152edd14f03dda4a59ad /net/phonet/socket.c
parent7fedd7e5dfeb0f6bd69ee120b5c44a5e49892e47 (diff)
Phonet: remove dangling pipe if an endpoint is closed early
Closing a pipe endpoint is not normally allowed by the Phonet pipe, other than as a side after-effect of removing the pipe between two endpoints. But there is no way to prevent Linux userspace processes from being killed or suffering from bugs, so this can still happen. We might as well forcefully close Phonet pipe endpoints then. The cellular modem supports only a few existing pipes at a time. So we really should not leak them. This change instructs the modem to destroy the pipe if either of the pipe's endpoint (Linux socket) is closed too early. Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet/socket.c')
0 files changed, 0 insertions, 0 deletions