diff options
| author | Hemant Kumar <hemantk@codeaurora.org> | 2017-05-15 12:01:02 -0700 |
|---|---|---|
| committer | Hemant Kumar <hemantk@codeaurora.org> | 2017-05-15 12:24:00 -0700 |
| commit | adce509c2875fb547b9a96fce8f04c7352777e86 (patch) | |
| tree | 61eae136bcdbdeeb3655454b09f995b6994411e2 /drivers/rtc/rtc-lib.c | |
| parent | 75a9d0fee5b264c89afdc8b155848625fcbe9ca0 (diff) | |
usb: gadget: f_cdev: Fix NULL pointer dereference in cser_free_inst
If f_cdev_alloc() fails it frees the port context and set_inst_name()
call back returns with error. As a result free_func_inst() call back
is called which is dereferencing port context from f_cdev_opts context
which results into NULL ptr dereference. Fix the issue by adding NULL
check for port context pointer in f_cdev_opts context.
Change-Id: I69828761be0a9f7df714eec34894c13f762dcc43
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Diffstat (limited to 'drivers/rtc/rtc-lib.c')
0 files changed, 0 insertions, 0 deletions
