Re: [PATCH] USB: Don't dereference snd->filp

From: Greg KH
Date: Wed Sep 29 2010 - 22:39:38 EST


On Thu, Sep 30, 2010 at 01:22:36AM +0200, Roel Kluin wrote:
> Don't dereference snd->filp.
>
> Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>
> ---
> drivers/usb/gadget/u_audio.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> Or should it return the error pointer?

Probably, what happens if you do?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/