Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 742320
Collapse All | Expand All

(-)a/block/partitions/core.c (-2 / +1 lines)
Lines 537-543 int bdev_del_partition(struct block_device *bdev, int partno) Link Here
537
537
538
	bdevp = bdget_disk(bdev->bd_disk, partno);
538
	bdevp = bdget_disk(bdev->bd_disk, partno);
539
	if (!bdevp)
539
	if (!bdevp)
540
		return -ENOMEM;
540
		return -ENXIO;
541
541
542
	mutex_lock(&bdevp->bd_mutex);
542
	mutex_lock(&bdevp->bd_mutex);
543
	mutex_lock_nested(&bdev->bd_mutex, 1);
543
	mutex_lock_nested(&bdev->bd_mutex, 1);
544
- 

Return to bug 742320