summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorChandana Kishori Chiluveru <cchiluve@codeaurora.org>2016-12-13 14:24:22 +0530
committerAjay Agarwal <ajaya@codeaurora.org>2016-12-20 15:41:24 +0530
commit025b7210046fe60cd4e942bc9d31a34c7098f875 (patch)
treed0ee4e0e6589438b3fb85aea5838c16a60d6baeb /net/unix/af_unix.c
parent3162449f7d245d45f007d4ea3224576ddf1bcc63 (diff)
USB: gadget: u_data_ipa: Handle usb requests allocation/free correctly
Currently USB requests are allocated during connect work for starting endless TX and RX in BAM2BAM over IPA. But these requests are not freed during disconnect which leads to memory leak and could result in memory allocation failure in function drivers during next connect. Hence free USB requests allocated during disconnect to fix memleak issue and also move allocation of RX/TX usb requests to gbam_connect to avoid crashes due to NULL pointer dereference. Also extend spinlock protection to avoid the crashes during connect and disconnect functions. Change-Id: I4362fde2928857253d2150e4d9531cada876cd58 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org> Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org> Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions