Felipe Balbi wrote:
From: Arnaud Mandy <ext-arnaud.2.mandy@xxxxxxxxx>
In musb_alloc_request() we could have a kernel oops if kzalloc() was returing NULL due to not having enough memory for the allocation.
I don't see where in musb_alloc_request() an oops could occur but it could certainly occur in its caller.
Prevent it, by testing if the allocation was successful before returning the request to upper layers.
Signed-off-by: Arnaud Mandy <ext-arnaud.2.mandy@xxxxxxxxx> Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx>
This looks like a fix, so should be queued immediately. Not sure why it's in the same patchset with musb_gadget revamping...
WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html