The following issues were found
drivers/media/dvb-frontends/cx24123.c
1 issues
Line: 1073
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
}
/* create dvb_frontend */
memcpy(&state->frontend.ops, &cx24123_ops,
sizeof(struct dvb_frontend_ops));
state->frontend.demodulator_priv = state;
/* create tuner i2c adapter */
if (config->dont_use_pll)
Reported by FlawFinder.
drivers/media/dvb-frontends/cx24113.c
1 issues
Line: 583
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
cx_info("version: %x\n", state->ver);
/* create dvb_frontend */
memcpy(&fe->ops.tuner_ops, &cx24113_tuner_ops,
sizeof(struct dvb_tuner_ops));
fe->tuner_priv = state;
return fe;
error:
Reported by FlawFinder.
drivers/md/dm-snap-persistent.c
1 issues
Line: 541
Column: 4
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
&full);
if (!full)
memcpy(ps->area, area, ps->store->chunk_size << SECTOR_SHIFT);
dm_bufio_release(bp);
dm_bufio_forget(client, chunk);
Reported by FlawFinder.
drivers/media/tuners/it913x.c
1 issues
Line: 402
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
dev->role = pdata->role;
fe->tuner_priv = dev;
memcpy(&fe->ops.tuner_ops, &it913x_tuner_ops,
sizeof(struct dvb_tuner_ops));
platform_set_drvdata(pdev, dev);
if (dev->chip_ver == 1)
chip_ver_str = "AX";
Reported by FlawFinder.
drivers/media/tuners/max2165.c
1 issues
Line: 401
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
if (priv == NULL)
return NULL;
memcpy(&fe->ops.tuner_ops, &max2165_tuner_ops,
sizeof(struct dvb_tuner_ops));
priv->config = cfg;
priv->i2c = i2c;
fe->tuner_priv = priv;
Reported by FlawFinder.
drivers/media/tuners/mc44s803.c
1 issues
Line: 342
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
}
mc_printk(KERN_INFO, "successfully identified (ID = %x)\n", id);
memcpy(&fe->ops.tuner_ops, &mc44s803_tuner_ops,
sizeof(struct dvb_tuner_ops));
fe->tuner_priv = priv;
if (fe->ops.i2c_gate_ctrl)
Reported by FlawFinder.
drivers/media/tuners/mt2063.c
1 issues
Line: 254
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
dprintk(2, "\n");
msg.buf[0] = reg;
memcpy(msg.buf + 1, data, len);
if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 1);
ret = i2c_transfer(state->i2c, &msg, 1);
if (fe->ops.i2c_gate_ctrl)
Reported by FlawFinder.
drivers/media/tuners/mt2131.c
1 issues
Line: 271
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
printk(KERN_INFO "MT2131: successfully identified at address 0x%02x\n",
cfg->i2c_address);
memcpy(&fe->ops.tuner_ops, &mt2131_tuner_ops,
sizeof(struct dvb_tuner_ops));
fe->tuner_priv = priv;
return fe;
}
Reported by FlawFinder.
drivers/media/tuners/mt2266.c
1 issues
Line: 333
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
return NULL;
}
printk(KERN_INFO "MT2266: successfully identified\n");
memcpy(&fe->ops.tuner_ops, &mt2266_tuner_ops, sizeof(struct dvb_tuner_ops));
fe->tuner_priv = priv;
mt2266_calibrate(priv);
return fe;
}
Reported by FlawFinder.
drivers/md/dm-rq.c
1 issues
Line: 433
Column: 9
CWE codes:
120
Suggestion:
Use sprintf_s, snprintf, or vsnprintf
/* DEPRECATED: previously used for request-based merge heuristic in dm_request_fn() */
ssize_t dm_attr_rq_based_seq_io_merge_deadline_show(struct mapped_device *md, char *buf)
{
return sprintf(buf, "%u\n", 0);
}
ssize_t dm_attr_rq_based_seq_io_merge_deadline_store(struct mapped_device *md,
const char *buf, size_t count)
{
Reported by FlawFinder.