path: root/inotail.c
diff options
Diffstat (limited to 'inotail.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index 441db98..53101a8 100644
--- a/inotail.c
+++ b/inotail.c
@@ -565,7 +565,8 @@ static int tail_file(struct file_struct *f, unsigned long n_units, mode_t mode,
f->size = finfo.st_size;
- f->blksize = finfo.st_blksize; /* TODO: Can this value be 0? */
+ if (likely(finfo.st_blksize > 0))
+ f->blksize = finfo.st_blksize;
if (mode == M_LINES)
offset = lines_to_offset(f, n_units);
m/mach-imx/mach-pca100.c?id=6bb27d7349db51b50c40534710fe164ca0d58902'>ARM: delete struct sys_timerStephen Warren1-5/+1 2012-10-15ARM: imx: include hardware.h rather than mach/hardware.hShawn Guo1-1/+1 2012-10-15ARM: imx: include ulpi.h rather than mach/ulpi.hShawn Guo1-1/+1 2012-10-15ARM: imx: include common.h rather than mach/common.hShawn Guo1-1/+1 2012-10-15ARM: imx: move iomux drivers and headers into mach-imxShawn Guo1-1/+1 2012-07-23Merge tag 'irq' of git:// Torvalds1-3/+2 2012-07-06ARM: imx: remove unused pdata from device macrosBenoît Thébaudeau1-2/+2 2012-07-01ARM: imx: remove unneeded mach/irq.h inclusionShawn Guo1-1/+0 2012-07-01ARM: imx: eliminate macro IRQ_GPIOx()Shawn Guo1-2/+2 2012-06-13ARM: imx: cleanup otg_modeBenoît Thébaudeau1-4/+4 2012-03-06ASoC: imx: move phycore audmux call into ASoC machine driverShawn Guo1-13/+0 2012-01-05ARM: restart: mxc: use new restart hookRussell King1-0/+1 2011-11-01Merge branch 'next/devel' of git:// Torvalds1-0/+1 2011-09-26ARM i.MX boards: use CONFIG_MULTI_IRQ_HANDLERSascha Hauer1-0/+1 2011-08-21ARM: mach-imx: convert boot_params to atag_offsetNicolas Pitre1-1/+1 2011-06-06gpio/mxc: Change gpio-mxc into an upstanding gpio driverShawn Guo1-0/+2 2011-05-19ARM: imx: remove #includes already available from devices-common.hUwe Kleine-König1-1/+0 2011-03-07ARM i.MX: introduce imx_otg_ulpi_create to create ULPI transceiversSascha Hauer1-12/+9 2011-02-11ARM i.MX ehci: do ehci init in board specific functionsSascha Hauer1-4/+8 2011-02-10ARM: imx: use .init_early to initialize cpu type and reset addressUwe Kleine-König1-6/+6 2011-01-27ARM i.MX27 pca100: remove unnecessary CONFIG_SPI_IMX ifdefsSascha Hauer1-4/+0 2010-11-17ARM: imx: remove now empty devices.hUwe Kleine-König1-1/+0 2010-11-17ARM: imx: dynamically allocate fsl-usb2-udc devicesUwe Kleine-König1-3/+2 2010-11-17ARM: imx: dynamically allocate mxc-ehci devicesUwe Kleine-König1-5/+4 2010-11-17ARM: imx: dynamically register mxc-mmc devicesUwe Kleine-König1-3/+2 2010-11-17ARM: imx: dynamically register imx-fb devicesUwe Kleine-König1-3/+2 2010-11-17ARM: imx: dynamically allocate imx2-wdt devicesUwe Kleine-König1-5/+1 2010-11-17ARM: imx: dynamically allocate mxc_w1 devicesUwe Kleine-König1-1/+1 2010-10-20arm: remove machine_desc.io_pg_offst and .phys_ioNicolas Pitre1-2/+0 2010-10-11ARM: imx: dynamically register fec devicesUwe Kleine-König1-1/+1 2010-10-01ARM: imx/pca100: only specify i2c device type onceUwe Kleine-König1-3/+1 2010-10-01ARM: imx: make all pin lists const and signed, move to .init where possibleUwe Kleine-König1-1/+1 2010-10-01ARM: imx: fix name of macros to add imx-i2c devicesUwe Kleine-König1-1/+1 2010-09-27ARM: imx: dynamically allocate imx-ssi devicesUwe Kleine-König1-3/+2 2010-08-23ARM: imx: fix build failure concerning otg/ulpiUwe Kleine-König1-2/+2 2010-08-10ARM: 6322/1: imx/pca100: Fix name of spi platform dataUwe Kleine-König1-1/+1 2010-07-26Merge branch 'imx/for-2.6.36' of git:// i...Uwe Kleine-König1-0/+460 2010-06-30ARM: imx: dynamically register imx-uart devices (imx27)Uwe Kleine-König1-3/+2 2010-06-30ARM: imx: dynamically register spi_imx devices (imx27)Uwe Kleine-König1-5/+2 2010-06-30ARM: imx: dynamically register imx-i2c devices (imx27)Uwe Kleine-König1-3/+2 2010-06-30ARM: imx: Change the way nand devices are registered (imx27)Uwe Kleine-König1-2/+4 2010-06-30ARM: imx: rename mxc_uart_devicex to follow a common naming schemeUwe Kleine-König1-1/+1 2010-06-24ARM: imx: rename mach dir for mx21 and mx27 to mach-imxUwe Kleine-König1-0/+396