mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 21:14:56 -04:00
Merge tag 'vfio-ccw-20171109' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw into features
Pull vfio-ccw update from Cornelia Huck: "A vfio-ccw bugfix: avoid freeing that which should not be freed."
This commit is contained in:
@@ -332,6 +332,8 @@ static void ccwchain_cda_free(struct ccwchain *chain, int idx)
|
||||
{
|
||||
struct ccw1 *ccw = chain->ch_ccw + idx;
|
||||
|
||||
if (ccw_is_test(ccw) || ccw_is_noop(ccw) || ccw_is_tic(ccw))
|
||||
return;
|
||||
if (!ccw->count)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user