projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sky2: version 1.22
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
md
/
dm-target.c
diff --git
a/drivers/md/dm-target.c
b/drivers/md/dm-target.c
index 64fd8e79ea4c9cd44b03c0973e2f1559afb96203..835cf95b857fa6cbef32c0c6d0d474e03909221a 100644
(file)
--- a/
drivers/md/dm-target.c
+++ b/
drivers/md/dm-target.c
@@
-12,6
+12,8
@@
#include <linux/bio.h>
#include <linux/slab.h>
#include <linux/bio.h>
#include <linux/slab.h>
+#define DM_MSG_PREFIX "target"
+
struct tt_internal {
struct target_type tt;
struct tt_internal {
struct target_type tt;
@@
-86,12
+88,10
@@
void dm_put_target_type(struct target_type *t)
static struct tt_internal *alloc_target(struct target_type *t)
{
static struct tt_internal *alloc_target(struct target_type *t)
{
- struct tt_internal *ti = k
m
alloc(sizeof(*ti), GFP_KERNEL);
+ struct tt_internal *ti = k
z
alloc(sizeof(*ti), GFP_KERNEL);
- if (ti) {
- memset(ti, 0, sizeof(*ti));
+ if (ti)
ti->tt = *t;
ti->tt = *t;
- }
return ti;
}
return ti;
}