summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/eeprom_def.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@gmail.com>2024-05-09 07:14:29 +0900
committerAndrew Morton <akpm@linux-foundation.org>2024-05-11 15:51:44 -0700
commit0a73eac1ed10097d1799c10dff2172605fd40c75 (patch)
treee64076d31795400083f8aee785cde6355227047c /drivers/net/wireless/ath/ath9k/eeprom_def.c
parentb1be5844c1a0124a49a30a20a189d0a53aa10578 (diff)
downloadlinux-stable-0a73eac1ed10097d1799c10dff2172605fd40c75.tar.gz
linux-stable-0a73eac1ed10097d1799c10dff2172605fd40c75.tar.bz2
linux-stable-0a73eac1ed10097d1799c10dff2172605fd40c75.zip
nilfs2: convert BUG_ON() in nilfs_finish_roll_forward() to WARN_ON()
The BUG_ON check performed on the return value of __getblk() in nilfs_finish_roll_forward() assumes that a buffer that has been successfully read once is retrieved with the same parameters and does not fail (__getblk() does not return an error due to memory allocation failure). Also, nilfs_finish_roll_forward() is called at most once during mount. Taking these into consideration, rewrite the check to use WARN_ON() to avoid using BUG_ON(). Link: https://lkml.kernel.org/r/20240508221429.7559-1-konishi.ryusuke@gmail.com Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom_def.c')
0 files changed, 0 insertions, 0 deletions