aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdchar.c
AgeCommit message (Expand)AuthorFilesLines
2023-06-01mtdchar: mark bits of ioctl handler noinlineArnd Bergmann1-4/+4
2022-09-21mtdchar: add MEMREAD ioctlMichał Kępień1-0/+139
2022-06-09mtdchar: use kvmalloc() for potentially large allocationsMichał Kępień1-5/+5
2022-06-09mtdchar: prevent integer overflow in a safety checkMichał Kępień1-0/+3
2021-12-09mtdchar: prevent unbounded allocation in MEMWRITE ioctlMichał Kępień1-23/+87
2021-03-28mtd: add OTP (one-time-programmable) erase ioctlMichael Walle1-1/+6
2021-03-28mtd: require write permissions for locking and badblock ioctlsMichael Walle1-4/+4
2021-03-11mtd: mtdchar: Fix fall-through warnings for ClangGustavo A. R. Silva1-0/+1
2021-03-11mtd: char: Get rid of Big MTD LockAlexander Sverdlin1-6/+8
2021-03-11mtd: char: Drop mtd_mutex usage from mtdchar_open()Alexander Sverdlin1-8/+2
2020-10-28mtd: remove unneeded breakTom Rix1-2/+0
2020-07-24mtd: properly check all write ioctls for permissionsGreg Kroah-Hartman1-9/+47
2020-03-11mtd: implement proper partition handlingMiquel Raynal1-5/+7
2019-10-08mtd: Initialize all parameters of mtd_oob_opsMiquel Raynal1-5/+5
2019-05-24treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 102Thomas Gleixner1-15/+1
2018-07-18mtdchar: fix overflows in adjustment of `count`Jann Horn1-3/+7
2018-04-06Merge tag 'mtd/for-4.17' of git://git.infradead.org/linux-mtdLinus Torvalds1-33/+1
2018-03-19mtdchar: fix usage of mtd_ooblayout_ecc()OuYang ZhiZhong1-2/+2
2018-03-15mtd: Unconditionally update ->fail_addr and ->addr in part_erase()Boris Brezillon1-1/+0
2018-03-15mtd: Stop assuming mtd_erase() is asynchronousBoris Brezillon1-32/+1
2017-10-17mtdchar: get rid of pointless access_ok()Al Viro1-23/+1
2017-02-08mtd: Fix typo: "occured" -> "occurred"Nobuhiro Iwamatsu1-1/+1
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-05-05mtd: kill the nand_ecclayout structBoris Brezillon1-6/+6
2016-04-19mtd: create an mtd_ooblayout_ops struct to ease ECC layout definitionBoris Brezillon1-2/+2
2016-04-19mtd: use mtd_ooblayout_xxx() helpers where appropriateBoris Brezillon1-19/+88
2015-09-29mtd: provide proper 32/64-bit compat_ioctl() support for BLKPGBrian Norris1-9/+33
2015-01-20fs: introduce f_op->mmap_capabilities for nommu mmap supportChristoph Hellwig1-62/+10
2014-08-19mtd: terminate user-provided stringBrian Norris1-0/+3
2014-05-20mtd: Fix warning in access_ok() parameter passingGeert Uytterhoeven1-9/+11
2014-03-10mtd: Fix the behavior of OTP write if there is not enough room for dataChristian Riesch1-0/+9
2014-03-10mtd: Add a retlen parameter to _get_{fact,user}_prot_infoChristian Riesch1-5/+6
2013-11-11mtd: mtdchar: return expected errors on mmap() callVladimir Zapolskiy1-3/+3
2013-11-06mtd: Move major number definitions to major.hEzequiel Garcia1-0/+1
2013-06-29mtdchar: switch to fixed_size_llseek()Al Viro1-19/+1
2013-05-09Merge tag 'for-linus-20130509' of git://git.infradead.org/linux-mtdLinus Torvalds1-30/+22
2013-04-19mtdchar: remove no-longer-used vma helpersLinus Torvalds1-27/+0
2013-04-19vm: convert mtdchar mmap to vm_iomap_memory() helperLinus Torvalds1-30/+2
2013-04-05mtd: merge mtdchar module with mtdcoreArtem Bityutskiy1-16/+4
2013-04-05mtd: mtdchar: use proper kernel print levelArtem Bityutskiy1-3/+5
2013-04-05mtd: mtdchar: handle chips that have user otp but no factory otpUwe Kleine-König1-11/+13
2013-03-03fs: Limit sys_mount to only request filesystem modules.Eric W. Biederman1-0/+1
2012-10-09mtd: Disable mtdchar mmap on MMU systemsDavid Woodhouse1-1/+5
2012-10-09mm: kill vma flag VM_RESERVED and mm->reserved_vm counterKonstantin Khlebnikov1-1/+1
2012-09-28mtdchar: fix offset overflow detectionLinus Torvalds1-6/+42
2012-05-07mtd: fix oops in dataflash driverWill Newton1-1/+1
2012-04-09fix breakage in mtdchar_open(), sanitize failure exitsAl Viro1-10/+10
2012-03-31Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-37/+16
2012-03-31mtdchar: kill persistently held vfsmountAl Viro1-37/+16
2012-03-30Merge tag 'for-linus-3.4' of git://git.infradead.org/mtd-2.6Linus Torvalds1-2/+2
2012-03-27mtd: add leading underscore to all mtd functionsArtem Bityutskiy1-2/+2
2012-03-23magic.h: move some FS magic numbers into magic.hMuthu Kumar1-1/+1
2012-01-09mtd: do not use mtd->block_markbad directlyArtem Bityutskiy1-4/+1
2012-01-09mtd: introduce mtd_can_have_bb helperArtem Bityutskiy1-4/+1
2012-01-09mtd: do not use mtd->lock, unlock and is_locked directlyArtem Bityutskiy1-12/+3
2012-01-09mtd: do not use mtd->sync directlyArtem Bityutskiy1-1/+1
2012-01-09mtd: do not use mtd->lock_user_prot_reg directlyArtem Bityutskiy1-2/+0
2012-01-09mtd: mtd->write_user_prot_reg directlyArtem Bityutskiy1-4/+0
2012-01-09mtd: do not use mtd->read_*_prot_reg directlyArtem Bityutskiy1-8/+10
2012-01-09mtd: do not use mtd->get_*_prot_info directlyArtem Bityutskiy1-5/+3
2012-01-09mtd: do not use mtd->read_oob directlyArtem Bityutskiy1-7/+2
2012-01-09mtd: do not use mtd->get_unmapped_area directlyArtem Bityutskiy1-15/+11
2012-01-09mtd: introduce mtd_has_oob helperArtem Bityutskiy1-1/+1
2012-01-09mtd: remove extra retlen assignmentArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_block_markbad interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_block_isbad interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_is_locked interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_unlock interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_lock interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_sync interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_lock_user_prot_reg interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_write_user_prot_reg interfaceArtem Bityutskiy1-1/+2
2012-01-09mtd: introduce mtd_read_user_prot_reg interfaceArtem Bityutskiy1-1/+2
2012-01-09mtd: introduce mtd_get_user_prot_info interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_read_fact_prot_reg interfaceArtem Bityutskiy1-1/+2
2012-01-09mtd: introduce mtd_get_fact_prot_info interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_write_oob interfaceArtem Bityutskiy1-3/+3
2012-01-09mtd: introduce mtd_read_oob interfaceArtem Bityutskiy1-2/+2
2012-01-09mtd: introduce mtd_write interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_read interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_get_unmapped_area interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: introduce mtd_erase interfaceArtem Bityutskiy1-1/+1
2012-01-09mtd: mtdchar: rename functionsArtem Bityutskiy1-37/+39
2011-11-07Merge git://git.infradead.org/mtd-2.6Linus Torvalds1-42/+120
2011-11-02filesystems: add missing nlink wrappersMiklos Szeredi1-1/+1
2011-09-21mtd: utilize `mtd_is_*()' functionsBrian Norris1-2/+2
2011-09-11mtd: kill old field for `struct mtd_info_user'Brian Norris1-2/+2
2011-09-11mtd: add MEMWRITE ioctlBrian Norris1-0/+56
2011-09-11mtd: rename MTD_MODE_* to MTD_FILE_MODE_*Brian Norris1-18/+18
2011-09-11mtd: rename MTD_OOB_* to MTD_OPS_*Brian Norris1-4/+6
2011-09-11mtd: support reading OOB without ECCBrian Norris1-6/+8
2011-09-11mtd: support writing OOB without ECCBrian Norris1-1/+2
2011-09-11mtd: do not assume oobsize is power of 2Brian Norris1-4/+4
2011-09-11mtd: spelling fixesBrian Norris1-2/+2
2011-09-11mtd: replace DEBUG() with pr_debug()Brian Norris1-5/+5
2011-09-11mtd: edit NAND-related commentBrian Norris1-2/+3
2011-09-11mtd: nand: handle ECC errors in OOBBrian Norris1-0/+15
2011-09-11mtd: spelling, capitalization, uniformityBrian Norris1-3/+3
2011-09-11mtd: mtdchar: add missing initializer on raw writePeter Wippich1-0/+1
2011-07-24VFS : mount lock scalability for internal mountsTim Chen1-1/+1
2011-05-25mtd: kill CONFIG_MTD_PARTITIONSJamie Iles1-5/+0
2011-05-25mtd: mtdchar: retry large buffer allocationsGrant Erickson1-27/+23
2011-03-31Fix common misspellingsLucas De Marchi1-1/+1
2011-01-17Merge git://git.infradead.org/mtd-2.6Linus Torvalds1-5/+5
2011-01-16sanitize vfsmount refcounting changesAl Viro1-1/+1
2011-01-12pass default dentry_operations to mount_pseudo()Al Viro1-1/+1
2011-01-07fs: scale mntget/mntputNick Piggin1-1/+1
2010-12-03mtd: fix master device identification for mtd repartitionRoman Tereshonkov1-4/+4
2010-12-03mtd: mtdchar: fix information leak to userlandVasiliy Kulikov1-1/+1
2010-10-30Merge git://git.infradead.org/mtd-2.6Linus Torvalds1-5/+106
2010-10-30Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torval...David Woodhouse1-7/+8
2010-10-29convert get_sb_pseudo() usersAl Viro1-6/+4
2010-10-25mtd: add BLKPG API based repartition supportRoman Tereshonkov1-2/+58
2010-10-24mtd: sanity check ioctl inputDan Carpenter1-0/+3
2010-10-24mtd: edit comments on deprecation of ioctl ECCGETLAYOUTBrian Norris1-1/+1
2010-10-24mtd: nand: expand nand_ecc_layout, deprecate ioctl ECCGETLAYOUTBrian Norris1-3/+45
2010-09-15mtd: autoconvert trivial BKL users to private mutexArnd Bergmann1-7/+8
2010-08-10Merge git://git.infradead.org/mtd-2.6Linus Torvalds1-3/+56
2010-08-08mtd: Remove obsolete <mtd/compatmac.h> includeDavid Woodhouse1-1/+0
2010-08-08mtd: Update copyright noticesDavid Woodhouse1-1/+15
2010-08-04mtd: mtdchar: fix mmap for MTD RAM/ROM char devicesAnatolij Gustschin1-1/+27
2010-08-02mtd: add an ioctl to query the lock status of a flash sectorRichard Cochran1-0/+14
2010-06-07Merge git://git.infradead.org/~dwmw2/mtd-2.6.35Linus Torvalds1-8/+3
2010-05-24Merge branch 'bkl/ioctl' of git://git.kernel.org/pub/scm/linux/kernel/git/fre...Linus Torvalds1-5/+14
2010-05-22drivers/mtd: Use memdup_userJulia Lawall1-8/+3
2010-05-18mtd: mtdchar: Do not corrupt backing device of device node inodeKirill A. Shutemov1-8/+87
2010-05-17drivers: Push down BKL into various driversArnd Bergmann1-5/+14
2010-02-25mtdchar: Register the full range of minor numbersBen Hutchings1-2/+3
2010-02-25mtd: Remove unnecessary comparisons with MAX_MTD_DEVICESBen Hutchings1-3/+0
2010-02-25mtd: change positive error return into negativeRoel Kluin1-1/+1
2010-02-25mtd: fix different address space noiseH Hartley Sweeten1-1/+1
2009-05-29mtd: Fix pointer handling in compat ioctls to use compat_ptr()David Woodhouse1-2/+2
2009-05-29mtd: Handle compat ioctls directly; remove all trace from compat_ioctl.cKevin Cernekee1-1/+2
2009-05-29mtd: add OOB ioctls for >4GiB devicesKevin Cernekee1-0/+28
2009-05-29mtd: compat_ioctl cleanupKevin Cernekee1-84/+171
2009-05-29mtd: add MEMERASE64 ioctl for >4GiB devicesKevin Cernekee1-8/+21
2009-04-04[MTD] driver model updatesDavid Brownell1-41/+6
2009-03-24NOMMU: Present backing device capabilities for MTD chardevsDavid Howells1-1/+62
2009-03-20[MTD] Auto-load mtdchar module when device opened.Scott James Remnant1-0/+1
2008-12-10[MTD] update internal API to support 64-bit device sizeAdrian Hunter1-1/+5
2008-10-21[PATCH] introduce fmode_t, do annotationsAl Viro1-5/+5
2008-10-20Merge git://git.infradead.org/mtd-2.6Linus Torvalds1-2/+2
2008-10-16device create: misc: convert device_create_drvdata to device_createGreg Kroah-Hartman1-6/+4
2008-09-02[MTD] mtdchar.c: Fix regression in MEMGETREGIONINFO ioctl()Zev Weiss1-6/+10
2008-08-01[MTD] dataflash OTP supportDavid Brownell1-2/+2
2008-07-25Merge branch 'linux-next' of git://git.infradead.org/~dedekind/ubi-2.6David Woodhouse1-9/+22
2008-07-21device create: mtd: convert device_create to device_create_drvdataGreg Kroah-Hartman1-3/+6
2008-07-11[MTD] mtdchar.c remove shadowed variable warningsHarvey Harrison1-9/+9
2008-07-11[MTD] mtdchar.c silence sparse warningHarvey Harrison1-2/+2
2008-06-20mtdchar: cdev lock_kernel() pushdownJonathan Corbet1-6/+16
2008-06-04MTD/JFFS2: remove CVS keywordsAdrian Bunk1-2/+0
2008-02-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.gitDavid Woodhouse1-7/+5
2008-01-24mtd: Convert from class_device to device for MTD/mtdcharTony Jones1-7/+5
2008-01-08[MTD] mtdchar.c: ioctl always returns 0 as size written for ppc64David Scidmore1-2/+6
2007-08-23Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torval...David Woodhouse1-0/+1
2007-08-11mtdchar build fixAndrew Morton1-0/+1
2007-06-28[MTD] Only call mtd->sync() method in mtdchar close if opened for write.Joakim Tjernlund1-1/+2
2007-04-17[MTD] Fix length comparison in MEMREADOOBThomas Gleixner1-1/+1
2007-02-19Merge git://git.infradead.org/mtd-2.6Linus Torvalds1-2/+3
2007-02-12[PATCH] mark struct file_operations const 5Arjan van de Ven1-1/+1
2007-02-09[MTD] remove unused ecctype,eccsize fields from struct mtd_infoArtem Bityutskiy1-2/+3
2006-11-29[MTD] return error code from get_mtd_device()Artem Bityutskiy1-2/+3
2006-11-28[MTD] replace kmalloc+memset with kzallocBurman Yan1-2/+1
2006-11-28[MTD] [NAND] remove len/ooblen confusion.Vitaly Wool1-7/+5
2006-10-21[MTD] mtdchar: Fix MEMGETOOBSEL and ECCGETLAYOUT ioctlsRicard Wanderlöf1-1/+2
2006-09-17[MTD] Use SEEK_{SET,CUR,END} instead of hardcoded values in mtdchar lseek()Josef 'Jeff' Sipek1-6/+3
2006-06-30Remove obsolete #include <linux/config.h>Jörn Engel1-1/+0
2006-06-27[MTD] CORE mtdchar.c: fix off-by-one error in lseek()Herbert Valerio Riedel1-1/+1
2006-06-20[MTD] NAND: Fix breakage all over the placeThomas Gleixner1-4/+4
2006-05-30[MTD] Disconnect struct mtd_info from ABIJoern Engel1-1/+10
2006-05-30[MTD] NAND Expose the new raw mode function and status info to userspaceThomas Gleixner1-58/+142
2006-05-29[MTD] NAND Signal that a bitflip was corrected by ECCThomas Gleixner1-1/+4
2006-05-29[MTD] Rework the out of band handling completelyThomas Gleixner1-20/+39
2006-05-29[MTD] Remove silly MTD_WRITE/READ macrosThomas Gleixner1-2/+2
2006-05-29[MTD] NAND Replace oobinfo by ecclayoutThomas Gleixner1-2/+24
2006-05-29[MTD] NAND Consolidate oobinfo handlingThomas Gleixner1-8/+2
2006-05-12OneNAND: One-Time Programmable (OTP) supportKyungmin Park1-1/+1
2006-04-17[PATCH] Remove unnecessary kmalloc/kfree calls in mtdcharThago Galesi1-13/+21
2005-11-07[MTD] core: Clean up trailing white spacesThomas Gleixner1-30/+30
2005-11-07[MTD] Tidy up Tims include cleanupThomas Gleixner1-7/+8
2005-11-06Merge branch 'master' of /home/tglx/work/mtd/git/linux-2.6.git/Thomas Gleixner1-2/+3
2005-10-30[PATCH] fix missing includesTim Schmielau1-0/+1
2005-10-28[PATCH] Driver Core: fix up all callers of class_device_create()Greg Kroah-Hartman1-2/+2
2005-08-04[MTD] mtdchar: Return EINVAL for bad seeks instead of fixing up to valid byteTodd Poynor1-9/+6
2005-07-04[MTD] mtdchar: Return the real error code when create_class() failedCoywolf Qi Hunt1-2/+2
2005-07-01[MTD] mtdchar.c: Replace DEVFS by udevTodd Poynor1-28/+24
2005-05-23[MTD] Reset file position when switching OTP modeNicolas Pitre1-1/+2
2005-05-23[MTD] Unabuse file-f_mode for OTP purposeNicolas Pitre1-21/+27
2005-05-23[MTD] User interface to Protection RegistersNicolas Pitre1-3/+110
2005-04-16Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds1-0/+562