From 753ab81e058ed53eb55a2c56af070cb14e9d2b6c Mon Sep 17 00:00:00 2001 From: Stefan Richter Date: Sun, 24 Mar 2013 17:31:09 +0100 Subject: [PATCH] --- yaml --- r: 374697 b: refs/heads/master c: bdabfa54635e5d95a5aa2087794f203cc1915f7a h: refs/heads/master i: 374695: 9a69ebcf391d44d2da2d1da6288bde2bd4d1c3c9 v: v3 --- [refs] | 2 +- trunk/drivers/firewire/core-cdev.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index c36f2d97c37a..3e790854459f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: df7ce66363bf66b2e8ef6245f5f42c2f6fb0db52 +refs/heads/master: bdabfa54635e5d95a5aa2087794f203cc1915f7a diff --git a/trunk/drivers/firewire/core-cdev.c b/trunk/drivers/firewire/core-cdev.c index 27ac423ab25e..13573e8f518f 100644 --- a/trunk/drivers/firewire/core-cdev.c +++ b/trunk/drivers/firewire/core-cdev.c @@ -1366,8 +1366,7 @@ static int init_iso_resource(struct client *client, int ret; if ((request->channels == 0 && request->bandwidth == 0) || - request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL || - request->bandwidth < 0) + request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL) return -EINVAL; r = kmalloc(sizeof(*r), GFP_KERNEL);