diff options
author | Mike Isely <isely@pobox.com> | 2008-02-03 15:20:49 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2008-02-03 15:20:49 -0600 |
commit | c9bd1bc3d742f96b9e2eab6a26b21007e6e48451 (patch) | |
tree | a1f7641cc4991c24a3ba3e8e571eeeea681af0f0 /linux/drivers/media/video/pvrusb2/pvrusb2-context.c | |
parent | 5fcd40e9ee4245964298eb0eee81add5b4bf0ba3 (diff) | |
download | mediapointer-dvb-s2-c9bd1bc3d742f96b9e2eab6a26b21007e6e48451.tar.gz mediapointer-dvb-s2-c9bd1bc3d742f96b9e2eab6a26b21007e6e48451.tar.bz2 |
pvrusb2: Fix oops possible when claiming a NULL stream
From: Mike Isely <isely@pobox.com>
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-context.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-context.c b/linux/drivers/media/video/pvrusb2/pvrusb2-context.c index e59833f8f..45bf1df17 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-context.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-context.c @@ -175,7 +175,7 @@ int pvr2_channel_claim_stream(struct pvr2_channel *cp, int code = 0; pvr2_context_enter(cp->mc_head); do { if (sp == cp->stream) break; - if (sp->user) { + if (sp && sp->user) { code = -EBUSY; break; } |