Skip to content

Commit 925e0ea

Browse files
committed
Merge tag 'for-linus-20140905' of git://git.infradead.org/linux-mtd
Pull mtd fixes from Brian Norris: "Two trivial MTD updates for 3.17-rc4: - a tiny comment tweak, to kill a bunch of DocBook warnings added during the merge window - a small fixup to the OTP routines' error handling" * tag 'for-linus-20140905' of git://git.infradead.org/linux-mtd: mtd: nand: fix DocBook warnings on nand_sdr_timings doc mtd: cfi_cmdset_0002: check return code for get_chip()
2 parents 86ba8b0 + b25046b commit 925e0ea

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

drivers/mtd/chips/cfi_cmdset_0002.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,10 @@ static int cfi_amdstd_otp_walk(struct mtd_info *mtd, loff_t from, size_t len,
14341434

14351435
mutex_lock(&chip->mutex);
14361436
ret = get_chip(map, chip, base, FL_LOCKING);
1437+
if (ret) {
1438+
mutex_unlock(&chip->mutex);
1439+
return ret;
1440+
}
14371441

14381442
/* Enter lock register command */
14391443
cfi_send_gen_cmd(0xAA, cfi->addr_unlock1,

include/linux/mtd/nand.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ static inline int jedec_feature(struct nand_chip *chip)
949949
: 0;
950950
}
951951

952-
/**
952+
/*
953953
* struct nand_sdr_timings - SDR NAND chip timings
954954
*
955955
* This struct defines the timing requirements of a SDR NAND chip.

0 commit comments

Comments
 (0)