Merge "msm: ba: avoid system crash in msm_ba_open()"
This commit is contained in:
commit
f697ab3e51
1 changed files with 5 additions and 0 deletions
|
@ -812,6 +812,11 @@ void *msm_ba_open(const struct msm_ba_ext_ops *ext_ops)
|
||||||
|
|
||||||
dev_ctxt = get_ba_dev();
|
dev_ctxt = get_ba_dev();
|
||||||
|
|
||||||
|
if (!dev_ctxt) {
|
||||||
|
dprintk(BA_ERR, "Failed to get ba dev");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
inst = kzalloc(sizeof(*inst), GFP_KERNEL);
|
inst = kzalloc(sizeof(*inst), GFP_KERNEL);
|
||||||
|
|
||||||
if (!inst) {
|
if (!inst) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue