{"push_id":1466834938,"size":1,"distinct_size":1,"ref":"refs/heads/skiboot-5.4.x","head":"bb3ec494f09c61d16048bee7e77d285a28b363e2","before":"c89b9f151f0c05d639bb5a496202c53fb1af76bc","commits":[{"sha":"bb3ec494f09c61d16048bee7e77d285a28b363e2","author":{"name":"Joel Stanley","email":"4a689f2c6015f1aa0842cb2cf7afeb81d6029c84@jms.id.au"},"message":"arch_flash_arm: Don't assume mtd labels are short\n\npflash relies on arch_flash_arm parsing /proc/mtd to discover the pnor\npartition. It helpfully uses strcasestr so it can handle the string\nchanging, which is what has happened as we moved to upstream compliant\nmtd device tree bindings.\n\nWe currently have a string like this:\n\ndev:    size   erasesize  name\nmtd0: 00060000 00001000 \"u-boot\"\nmtd1: 00020000 00001000 \"u-boot-env\"\nmtd2: 00280000 00001000 \"kernel\"\nmtd3: 001c0000 00001000 \"initramfs\"\nmtd4: 01740000 00001000 \"rofs\"\nmtd5: 00400000 00001000 \"rwfs\"\nmtd6: 02000000 00001000 \"1e620000.flash-controller:flash@1\"\nmtd7: 08000000 00001000 \"1e630000.flash-controller:pnor@0\"\n\nUnfortunately arch_flash_arm assumes the string will be at most 50\ncharacters. That's right before the label we're looking for starts so\nwe ignore that line and keep searching.\n\nFix it by allowing for a 255 character line.\n\nFixes: 48ab7ce09504 (external/pflash: Add --mtd)\nSigned-off-by: Joel Stanley <joel@jms.id.au>\nReviewed-by: Cyril Bur <cyril.bur@au1.ibm.com>\nSigned-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>\n(cherry picked from commit 7d6e73810dec029678a0d14a3f47485d4025520e)\nSigned-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>","distinct":true,"url":"https://api.github.com/repos/open-power/skiboot/commits/bb3ec494f09c61d16048bee7e77d285a28b363e2"}]}
{"actor":{"display_login":"stewart-ibm"}}