mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 23:14:31 +04:00
13 lines
308 B
Diff
13 lines
308 B
Diff
--- a/src/lxc/bdev.c
|
|
+++ b/src/lxc/bdev.c
|
|
@@ -1936,3 +1936,3 @@ static int loop_mount(struct bdev *bdev)
|
|
{
|
|
- int lfd, ffd = -1, ret = -1;
|
|
+ int lfd = -1, ffd = -1, ret = -1;
|
|
struct loop_info64 lo;
|
|
@@ -1974,3 +1974,3 @@ out:
|
|
if (ret < 0) {
|
|
- close(lfd);
|
|
+ if (lfd > -1) close(lfd);
|
|
bdev->lofd = -1;
|