]> git.pld-linux.org Git - packages/kernel.git/blobdiff - kernel-aufs4.patch
- 4.9.221
[packages/kernel.git] / kernel-aufs4.patch
index c117b634054a51dbe6a4ae46c238a9f0efe240ee..f409e97405564c299faa85cb27437fd46b7194f7 100644 (file)
@@ -38277,7 +38277,7 @@ index 6ee9235..f64161f 100644
        struct inode    *inode;
        int             error;
  
-@@ -665,9 +678,16 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
+@@ -665,13 +678,20 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
        file = fget(arg);
        if (!file)
                goto out;
@@ -38288,6 +38288,10 @@ index 6ee9235..f64161f 100644
 +              get_file(file);
 +      }
  
+       error = loop_validate_file(file, bdev);
+       if (error)
+               goto out_putf;
        inode = file->f_mapping->host;
        old_file = lo->lo_backing_file;
 +      old_virt_file = lo->lo_backing_virt_file;
@@ -38321,7 +38325,7 @@ index 6ee9235..f64161f 100644
  static int loop_set_fd(struct loop_device *lo, fmode_t mode,
                       struct block_device *bdev, unsigned int arg)
  {
--      struct file     *file, *f;
+-      struct file     *file;
 +      struct file     *file, *f, *virt_file = NULL;
        struct inode    *inode;
        struct address_space *mapping;
This page took 0.049949 seconds and 4 git commands to generate.