Merge tag ‘for-v5.1-rc’ of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply [Linux 5.1]

Merge tag ‘for-v5.1-rc’ of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply [Linux 5.1]

This Linux kernel change "Merge tag ‘for-v5.1-rc’ of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply" is included in the Linux 5.1 release. This change is authored by Linus Torvalds <torvalds [at] linux-foundation.org> on Wed May 1 14:57:23 2019 -0700. The commit for this change in Linux stable tree is 600d725 (patch). Other info about this change: Merge: 65beea4 349ced9

Merge tag 'for-v5.1-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply

Pull power supply fixes from Sebastian Reichel:
 "Two more fixes for the 5.1 cycle.

  One division by zero fix in a specific driver and one core workaround
  for bad userspace behaviour from systemd regarding uevents. IMHO this
  can be considered to be a userspace bug, but the debug messages are
  useless anyways

   - cpcap-battery: fix a division by zero

   - core: fix systemd issue due to log messages produced by uevent"

* tag 'for-v5.1-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply:
  power: supply: sysfs: prevent endless uevent loop with CONFIG_POWER_SUPPLY_DEBUG
  power: supply: cpcap-battery: Fix division by zero

There is no are 0 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 fs/btrfs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 82fdda8..2973608 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -6783,7 +6783,7 @@ struct extent_map *btrfs_get_extent(struct btrfs_inode *inode,
    u64 extent_start = 0;
    u64 extent_end = 0;
    u64 objectid = btrfs_ino(inode);
-   u8 extent_type;
+   int extent_type = -1;
    struct btrfs_path *path = NULL;
    struct btrfs_root *root = inode->root;
    struct btrfs_file_extent_item *item;

Leave a Reply

Your email address will not be published. Required fields are marked *