|
@@ -387,8 +387,10 @@ static int ccwchain_calc_length(u64 iova, struct channel_program *cp)
|
|
* orb specified one of the unsupported formats, we defer
|
|
* orb specified one of the unsupported formats, we defer
|
|
* checking for IDAWs in unsupported formats to here.
|
|
* checking for IDAWs in unsupported formats to here.
|
|
*/
|
|
*/
|
|
- if ((!cp->orb.cmd.c64 || cp->orb.cmd.i2k) && ccw_is_idal(ccw))
|
|
|
|
|
|
+ if ((!cp->orb.cmd.c64 || cp->orb.cmd.i2k) && ccw_is_idal(ccw)) {
|
|
|
|
+ kfree(p);
|
|
return -EOPNOTSUPP;
|
|
return -EOPNOTSUPP;
|
|
|
|
+ }
|
|
|
|
|
|
if ((!ccw_is_chain(ccw)) && (!ccw_is_tic(ccw)))
|
|
if ((!ccw_is_chain(ccw)) && (!ccw_is_tic(ccw)))
|
|
break;
|
|
break;
|